woocommerce_debug_tools хук-фильтрWC 1.0

Использование

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
-

Где вызывается хук

WC_REST_System_Status_Tools_V2_Controller::get_tools()
woocommerce_debug_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 );