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.8.7.0

apply_filters('woocommerce_component_settings_preload_endpoints') is found 2 times:

  • /src/Internal/Admin/Loader.php line 309
    					: array_values( $wp_locale->weekday_abbrev ),
    			];
    		}
    
    		$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: