woocommerce_debug_tools
Использование
add_filter( 'woocommerce_debug_tools', 'wp_kama_woocommerce_debug_tools_filter' ); /** * Function for `woocommerce_debug_tools` filter-hook. * * @param $tools * * @return */ function wp_kama_woocommerce_debug_tools_filter( $tools ){ // filter... return $tools; }
- $tools
- -
Где вызывается хук
woocommerce_debug_tools
woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-tools-v2-controller.php 240
return apply_filters( 'woocommerce_debug_tools', $tools );
Где используется хук в WooCommerce
woocommerce/src/Admin/RemoteInboxNotifications/RemoteInboxNotificationsEngine.php 76
self::add_filter( 'woocommerce_debug_tools', array( __CLASS__, 'add_debug_tools' ) );
woocommerce/src/Internal/Admin/Analytics.php 62
add_filter( 'woocommerce_debug_tools', array( $this, 'register_cache_clear_tool' ) );
woocommerce/src/Internal/DataStores/Orders/CustomOrdersTableController.php 142
self::add_filter( 'woocommerce_debug_tools', array( $this, 'add_hpos_tools' ), 999 );
woocommerce/src/Internal/OrderCouponDataMigrator.php 26
self::add_filter( 'woocommerce_debug_tools', array( $this, 'handle_woocommerce_debug_tools' ), 999, 1 );
woocommerce/src/Internal/ProductAttributesLookup/DataRegenerator.php 66
self::add_filter( 'woocommerce_debug_tools', array( $this, 'add_initiate_regeneration_entry_to_tools_array' ), 1, 999 );
woocommerce/src/Internal/ProductDownloads/ApprovedDirectories/Admin/SyncUI.php 42
add_filter( 'woocommerce_debug_tools', array( $this, 'add_tools' ) );
woocommerce/src/Internal/TransientFiles/TransientFilesEngine.php 55
self::add_filter( 'woocommerce_debug_tools', array( $this, 'add_debug_tools_entries' ), 999, 1 );