manage_comments_nav

ACTION wp-admin\includes\class-wp-comments-list-table.php (ligne 450) github
Fires after the Filter submit button for comment types.

Paramètres

Entrée :
$comment_status, $which
Sortie :
@param string $comment_status The comment status name. Default 'All'.
@param string $which          The location of the extra table nav markup: Either 'top' or 'bottom'.

Utilisation

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

function ma_fonction_personnalisee($comment_status, $which) {
    // Votre code ici
    error_log('Hook manage_comments_nav déclenché');
}

Actualités

Chargement des actualités...