PATH:
home
/
fengshp
/
www
/
wp-content
/
plugins
/
themify-builder-pro
/
modules
<?php if (!defined('ABSPATH')) exit; // Exit if accessed directly /** * Module Name: WooCommerce Hook * Description: */ class TB_WooCommerce_Hook_Module extends Themify_Builder_Component_Module { public static function is_available():bool{ return themify_is_woocommerce_active(); } public static function get_module_name():string { return __('WooCommerce Hook', 'tbp'); } public static function get_module_icon():string { return 'filter'; } public function __construct() {//backward if (method_exists('Themify_Builder_Model', 'add_module')) { parent::__construct('woocommerce-hook'); } else {//backward parent::__construct(array( 'name' => $this->get_name(), 'slug' => 'woocommerce-hook', 'category' => $this->get_group() )); } } /** * Render plain content for static content. */ public static function get_static_content(array $module):string { return ''; } public function get_name() {//backward return self::get_module_name(); } public function get_icon() {//backward return self::get_module_icon(); } public static function do_action(string $hook='') { global $wp_filter; if (isset($wp_filter) && !empty($wp_filter[$hook])) { $hooks = $wp_filter[$hook]; if (is_object($hooks) && is_array($hooks->callbacks)) { $wc_dir = dirname(WC_PLUGIN_FILE); foreach ($hooks->callbacks as $priority => $action) { if (is_array($action) && !empty($action)) { foreach ($action as $f) { if (is_string($f['function']) && function_exists($f['function'])) { $func = new ReflectionFunction($f['function']); $func_dir = $func->getFileName(); if (strpos($func_dir, $wc_dir) === 0) { remove_action($hook, $f['function'], $priority); } } } } } } } do_action($hook); } } if (!method_exists( 'Themify_Builder_Component_Module', 'get_module_class' ) && TB_WooCommerce_Hook_Module::is_available()) { if (method_exists('Themify_Builder_Model', 'add_module')) { new TB_WooCommerce_Hook_Module(); } else { Themify_Builder_Model::register_module('TB_WooCommerce_Hook_Module'); } }
[+]
..
[-] module-checkout-information.php
[edit]
[-] module-related-posts.php
[edit]
[-] module-advanced-posts.php
[edit]
[-] module-breadcrumbs.php
[edit]
[-] module-site-logo.php
[edit]
[-] module-taxonomy.php
[edit]
[-] module-post-title.php
[edit]
[-] module-checkout-review.php
[edit]
[-] module-checkout-payment.php
[edit]
[-] module-search-form.php
[edit]
[-] module-comments.php
[edit]
[-] module-author-info.php
[edit]
[-] module-wishlist-icon.php
[edit]
[-] module-cart-items.php
[edit]
[-] module-product-title.php
[edit]
[-] module-archive-image.php
[edit]
[-] module-product-taxonomy.php
[edit]
[-] module-product-description.php
[edit]
[-] module-add-to-cart.php
[edit]
[-] module-product-stock-status.php
[edit]
[-] module-checkout-coupon.php
[edit]
[-] module-cart-totals.php
[edit]
[-] module-woocommerce-breadcrumb.php
[edit]
[-] module-crosssell-products.php
[edit]
[-] module-archive-products.php
[edit]
[-] module-checkout-billing.php
[edit]
[-] module-post-navigation.php
[edit]
[-] module-ptb-repeater.php
[edit]
[-] module-post-content.php
[edit]
[-] module-product-meta.php
[edit]
[-] module-readtime.php
[edit]
[-] module-wc-notices.php
[edit]
[-] module-upsell-products.php
[edit]
[-] module-cart-icon.php
[edit]
[-] module-checkout-shipping.php
[edit]
[-] module-product-price.php
[edit]
[-] module-acf-repeater.php
[edit]
[-] module-wishlist-link.php
[edit]
[-] module-related-products.php
[edit]
[-] module-advanced-products.php
[edit]
[-] module-stats.php
[edit]
[-] module-archive-posts.php
[edit]
[-] module-archive-title.php
[edit]
[-] module-archive-description.php
[edit]
[-] module-site-tagline.php
[edit]
[-] module-product-image.php
[edit]
[-] module-product-reviews.php
[edit]
[-] module-product-rating.php
[edit]
[-] module-featured-image.php
[edit]
[-] module-post-meta.php
[edit]
[-] module-woocommerce-hook.php
[edit]