woocommerce_component_settings_preload_endpoints filter-hookWC 6.5.0

The woocommerce_component_settings_preload_endpoints filter

Usage

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
-

Changelog

Since 6.5.0 Introduced.

Where the hook is called

Loader::add_component_settings()
woocommerce_component_settings_preload_endpoints
Settings::add_component_settings()
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() );

Where the hook is used in WooCommerce

woocommerce/src/Internal/Admin/Analytics.php 59
add_filter( 'woocommerce_component_settings_preload_endpoints', array( $this, 'add_preload_endpoints' ) );