Fires in each custom column on the Posts list table. This hook only fires if the current post type is hierarchical, such as pages.
$column_name, $post->ID
Sortie :
@param string $column_name The name of the column to display. @param int $post_id The current post ID.
// 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é');
}
Chargement des actualités...