generate_category_lookup_table

ACTION woocommerce\includes\class-woocommerce.php (ligne 1481) github
Wrapper for the `generate_category_lookup_table` action. This prevents the event failing when the class is not loaded. It loads the class if it exists, and then calls the actual action.

Paramètres

Entrée :
N/A
Sortie :
@return void

Utilisation

// Ajouter une fonction au hook action 'generate_category_lookup_table'
add_action('generate_category_lookup_table', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee() {
    // Votre code ici
    error_log('Hook generate_category_lookup_table déclenché');
}

Actualités

Chargement des actualités...