woocommerce_component_settings_preload_endpoints
The woocommerce_component_settings_preload_endpoints filter
Использование
add_filter( 'woocommerce_component_settings_preload_endpoints', 'wp_kama_woocommerce_component_settings_preload_endpoints_filter' ); /** * Function for `woocommerce_component_settings_preload_endpoints` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_component_settings_preload_endpoints_filter( $array ){ // filter... return $array; }
- $array
- -
Список изменений
С версии 6.5.0 | Введена. |
Где вызывается хук
woocommerce_component_settings_preload_endpoints
woocommerce_component_settings_preload_endpoints
woocommerce/src/Internal/Admin/Loader.php 337
$preload_data_endpoints = apply_filters( 'woocommerce_component_settings_preload_endpoints', array() );
woocommerce/src/Internal/Admin/Settings.php 140
$preload_data_endpoints = apply_filters( 'woocommerce_component_settings_preload_endpoints', array() );
Где используется хук в WooCommerce
woocommerce/src/Internal/Admin/Analytics.php 59
add_filter( 'woocommerce_component_settings_preload_endpoints', array( $this, 'add_preload_endpoints' ) );