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

apply_filters('woocommerce_component_settings_preload_endpoints') is found 2 times:

  • /src/Internal/Admin/Loader.php line 341
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    * 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 139
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
        );
    }
     
    //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: