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

Calling this method adds pages to the below tabs filter on non-settings pages.

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

add_filter( 'woocommerce_settings_tabs_array', 'wp_kama_woocommerce_settings_tabs_array_filter' );

/**
 * Function for `woocommerce_settings_tabs_array` filter-hook.
 * 
 * @param  $array 
 *
 * @return 
 */
function wp_kama_woocommerce_settings_tabs_array_filter( $array ){

	// filter...
	return $array;
}
$array
-

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

CoreMenu::get_setting_items()
woocommerce_settings_tabs_array
wc_admin_get_core_pages_to_connect()
woocommerce_settings_tabs_array
WC_Admin_Settings::output()
woocommerce_settings_tabs_array
woocommerce/src/Admin/Features/Navigation/CoreMenu.php 57
$tabs = apply_filters( 'woocommerce_settings_tabs_array', array() );
woocommerce/includes/react-admin/connect-existing-pages.php 35
'tabs'  => apply_filters( 'woocommerce_settings_tabs_array', array() ), // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
woocommerce/includes/admin/class-wc-admin-settings.php 152
$tabs = apply_filters( 'woocommerce_settings_tabs_array', array() );

Где используется хук в WooCommerce

woocommerce/includes/admin/settings/class-wc-settings-page.php 38
add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );
woocommerce/includes/admin/settings/class-wc-settings-tax.php 29
add_filter( 'woocommerce_settings_tabs_array', array( $this, 'add_settings_page' ), 20 );