OwlCyberSecurity - MANAGER
Edit File: index.php
<?php /** * Listing */ if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } if( !class_exists( 'Neytri_Shop_Listing' ) ) { class Neytri_Shop_Listing { private static $_instance = null; public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); } return self::$_instance; } function __construct() { /* Update Options Location Path Array */ add_filter( 'neytri_woo_option_locations', array( $this, 'option_locations_update'), 10, 1 ); /* Update Types Location Path Array */ add_filter( 'neytri_woo_type_locations', array( $this, 'type_locations_update'), 10, 1 ); /* Shop Settings Menu Filter */ add_action( 'neytri_pro_cs_framework_settings', array ( $this, 'woo_cs_fw_shop_settings' ), 10 ); /* Load Modules */ $this->load_modules(); } /* Options Location Path Update */ function option_locations_update( $paths ) { array_push( $paths, NEYTRI_SHOP_MODULE_PATH. 'listings/options/*/index.php' ); return $paths; } /* Types Location Path Update */ function type_locations_update( $paths ) { array_push( $paths, NEYTRI_SHOP_MODULE_PATH. 'listings/types/*/index.php' ); return $paths; } /* Shop Settings Menu Filter */ function woo_cs_fw_shop_settings() { $settings = array( 'menu_title' => esc_html__('Neytri Settings', 'neytri-shop'), 'menu_type' => 'menu', 'menu_slug' => 'neytri-settings', 'ajax_save' => false, 'show_reset_all' => false, 'framework_title' => esc_html__('Neytri Settings', 'neytri-shop') ); return $settings; } /* Load Modules */ function load_modules() { // Product Template if(is_admin()) { include_once NEYTRI_SHOP_MODULE_PATH . 'listings/product-template/index.php'; } // Product Hooks include_once NEYTRI_SHOP_MODULE_PATH . 'listings/product-hooks/index.php'; // Product Archive include_once NEYTRI_SHOP_MODULE_PATH . 'listings/product-archive/index.php'; } } } if( !function_exists('neytri_shop_listing') ) { function neytri_shop_listing() { return Neytri_Shop_Listing::instance(); } } neytri_shop_listing();