/** * Main Pootle Slider Instance * Ensures only one instance of Storefront_Extension_Boilerplate is loaded or can be loaded. * @since 1.0.0 * @return pootle_page_builder_for_WooCommerce instance */ public static function instance() { if (null == self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
/** * Initiates public class and adds public hooks * @since 1.0.0 */ private function _public() { //Instantiating public class $this->public = pootle_page_builder_for_WooCommerce_Public::instance(); //Adding front end JS and CSS in /assets folder add_action('wp_enqueue_scripts', array($this->public, 'enqueue')); //Filter the tabs content add_filter('woocommerce_tab_manager_tab_panel_content', array($this->public, 'wc_tabs_filter'), 7, 3); //Add the products to content block add_action('pootlepb_render_content_block', array($this->public, 'render_products'), 52); }