woocommerce_shortcode_after_{$this->type}_loop

ACTION woocommerce\includes\shortcodes\class-wc-shortcode-products.php (ligne 687) github
Fire the standard shop hooks when paginating so we can display the pagination. If the pagination is not enabled, this hook will not be fired.

Paramètres

Entrée :
$this->attributes
Sortie :
N/A

Utilisation

// Ajouter une fonction au hook action 'woocommerce_shortcode_after_{$this->type}_loop'
add_action('woocommerce_shortcode_after_{$this->type}_loop', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($this->attributes) {
    // Votre code ici
    error_log('Hook woocommerce_shortcode_after_{$this->type}_loop déclenché');
}

Actualités

Chargement des actualités...