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/src/Admin/Features/OnboardingTasks/TaskLists.php 74
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 63
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 43
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' ) );