woocommerce_(id)_settings
Filter account settings.
Использование
add_filter( 'woocommerce_(id)_settings', 'wp_kama_woocommerce_id_settings_filter' ); /** * Function for `woocommerce_(id)_settings` filter-hook. * * @param array $account_settings Account settings. * * @return array */ function wp_kama_woocommerce_id_settings_filter( $account_settings ){ // filter... return $account_settings; }
- $account_settings(массив)
- Account settings.
Список изменений
С версии 3.5.0 | Введена. |
Где вызывается хук
woocommerce_(id)_settings
woocommerce/includes/admin/settings/class-wc-settings-accounts.php 268
return apply_filters( 'woocommerce_' . $this->id . '_settings', $account_settings );
Где используется хук в 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/Blocks/Shipping/ShippingController.php 76
add_filter( 'woocommerce_shipping_settings', array( $this, 'remove_shipping_settings' ) );
woocommerce/src/Internal/Admin/ActivityPanels.php 37
add_filter( 'woocommerce_components_settings', array( $this, 'component_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 44
add_filter( 'woocommerce_components_settings', array( $this, 'component_settings' ), 20 );
woocommerce/src/Internal/Admin/Onboarding/OnboardingSetupWizard.php 46
add_filter( 'woocommerce_admin_shared_settings', array( $this, 'component_settings' ), 20 );
woocommerce/src/Internal/Admin/Onboarding/OnboardingSetupWizard.php 47
add_filter( 'woocommerce_admin_preload_settings', array( $this, 'preload_settings' ) );
woocommerce/src/Internal/Admin/Settings.php 43
add_filter( 'woocommerce_components_settings', array( $this, 'add_component_settings' ) );
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 104
self::add_filter( 'woocommerce_admin_shared_settings', array( $this, 'set_change_feature_enable_nonce' ), 20, 1 );