twentytwenty_start_of_post_meta_list

ACTION wp-content\themes\twentytwenty\inc\template-tags.php (ligne 365) github
Fires before post meta HTML display. Allow output of additional post meta info to be added by child themes and plugins.

Paramètres

Entrée :
$post_id, $post_meta, $location
Sortie :
@param int    $post_id   Post ID.
@param array  $post_meta An array of post meta information.
@param string $location  The location where the meta is shown.

Utilisation

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

function ma_fonction_personnalisee($post_id, $post_meta, $location) {
    // Votre code ici
    error_log('Hook twentytwenty_start_of_post_meta_list déclenché');
}

Actualités

Chargement des actualités...