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

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

add_filter( 'woocommerce_admin_shared_settings', 'wp_kama_woocommerce_admin_shared_settings_filter' );

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

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

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

WCAdminSharedSettings::on_woocommerce_blocks_loaded()
woocommerce_admin_shared_settings
woocommerce/src/Internal/Admin/WCAdminSharedSettings.php 61
return apply_filters( 'woocommerce_admin_shared_settings', array() );

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

woocommerce/includes/admin/helper/class-wc-helper-admin.php 30
add_filter( 'woocommerce_admin_shared_settings', array( __CLASS__, 'add_marketplace_settings' ) );
woocommerce/src/Admin/Features/LaunchYourStore.php 19
add_filter( 'woocommerce_admin_shared_settings', array( $this, 'preload_settings' ) );
woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php 77
add_filter( 'woocommerce_admin_shared_settings', array( __CLASS__, 'task_list_preloaded_settings' ), 20 );
woocommerce/src/Internal/Admin/ActivityPanels.php 39
add_filter( 'woocommerce_admin_shared_settings', array( $this, 'component_settings' ), 20 );
woocommerce/src/Internal/Admin/Marketing.php 64
add_filter( 'woocommerce_admin_shared_settings', array( $this, 'component_settings' ), 30 );
woocommerce/src/Internal/Admin/Onboarding/OnboardingSetupWizard.php 46
add_filter( 'woocommerce_admin_shared_settings', array( $this, 'component_settings' ), 20 );
woocommerce/src/Internal/Admin/Settings.php 45
add_filter( 'woocommerce_admin_shared_settings', array( $this, 'add_component_settings' ) );
woocommerce/src/Internal/Admin/SettingsNavigationFeature.php 50
add_filter( 'woocommerce_admin_shared_settings', array( __CLASS__, 'add_component_settings' ) );
woocommerce/src/Internal/Admin/WcPayWelcomePage.php 47
add_filter( 'woocommerce_admin_shared_settings', [ $this, 'shared_settings' ] );
woocommerce/src/Internal/Features/FeaturesController.php 102
self::add_filter( 'woocommerce_admin_shared_settings', array( $this, 'set_change_feature_enable_nonce' ), 20, 1 );