manage_pages_custom_column

ACTION wp-admin\includes\class-wp-posts-list-table.php (ligne 1377) github
Fires in each custom column on the Posts list table. This hook only fires if the current post type is hierarchical, such as pages.

Paramètres

Entrée :
$column_name, $post->ID
Sortie :
@param string $column_name The name of the column to display.
@param int    $post_id     The current post ID.

Utilisation

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

function ma_fonction_personnalisee($column_name, $post->ID) {
    // Votre code ici
    error_log('Hook manage_pages_custom_column déclenché');
}

Actualités

Chargement des actualités...