OwlCyberSecurity - MANAGER
Edit File: index.php
<?php /** * WooCommerce - Single Core Class */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if( !class_exists( 'Neytri_Shop_Single' ) ) { class Neytri_Shop_Single { private static $_instance = null; private $settings; public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } function __construct() { // Load WooCommerce Comments Template add_filter( 'comments_template', array( $this, 'neytri_shop_comments_template' ), 20, 1 ); // Load Modules $this->load_modules(); } /** * Override WooCommerce comments template file */ function neytri_shop_comments_template( $template ) { if ( get_post_type() !== 'product' ) { return $template; } $plugin_path = NEYTRI_SHOP_PATH . 'templates/'; if ( file_exists( $plugin_path . 'single-product-reviews.php' ) ) { return $plugin_path . 'single-product-reviews.php'; } return $template; } /* Load Modules */ function load_modules() { // Customizer Widgets include_once NEYTRI_SHOP_PATH . 'modules/single/customizer/index.php'; // Metabox Widgets include_once NEYTRI_SHOP_PATH . 'modules/single/metabox/index.php'; } } } if( !function_exists('neytri_shop_single') ) { function neytri_shop_single() { return Neytri_Shop_Single::instance(); } } neytri_shop_single();