woocommerce_helper_api_base

FILTER woocommerce\includes\admin\helper\class-wc-helper-api.php (ligne 33) github
Load Allow devs to point the API base to a local API development or staging server. Note that sslverify will be turned off for the woocommerce.dev + WP_DEBUG combination. The URL can be changed on plugins_loaded before priority 10.

Paramètres

Entrée :
'https://woocommerce.com/wp-json/helper/1.0'
Sortie :
N/A

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_helper_api_base'
add_filter('woocommerce_helper_api_base', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre('https://woocommerce.com/wp-json/helper/1.0') {
    // Modifier la valeur
    return 'https://woocommerce.com/wp-json/helper/1.0';
}

Actualités

Chargement des actualités...