woocommerce_component_settings_preload_endpoints

woocommerce_component_settings_preload_endpoints

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_component_settings_preload_endpoints') is found 2 times:

  • /src/Internal/Admin/Loader.php line 341
    		 * The woocommerce_component_settings_preload_endpoints filter
    		 *
    		 * @since 6.5.0
    		 */
    		$preload_data_endpoints = apply_filters( 'woocommerce_component_settings_preload_endpoints', array() );
    
    		$preload_data_endpoints['jetpackStatus'] = '/jetpack/v4/connection';
    		if ( ! empty( $preload_data_endpoints ) ) {
    			$preload_data = array_reduce(
    				array_values( $preload_data_endpoints ),
    				'rest_preload_api_request'
    
  • /src/Internal/Admin/Settings.php line 140
    			);
    		}
    
    		//phpcs:ignore
    		$preload_data_endpoints = apply_filters( 'woocommerce_component_settings_preload_endpoints', array() );
    		$preload_data_endpoints['jetpackStatus'] = '/jetpack/v4/connection';
    		if ( ! empty( $preload_data_endpoints ) ) {
    			$preload_data = array_reduce(
    				array_values( $preload_data_endpoints ),
    				'rest_preload_api_request'
    			);
    

See this hook used in plugins: