the_guid

FUNCTION wp-includes\post-template.php (ligne 130) github
Filters the text prepended to the post title for protected posts. The filter is only applied on the front end.

Paramètres

Entrée :
$post = 0
Sortie :
@param string  $prepend Text displayed before the post title.
@param WP_Post $post    Current post object.
@param string  $prepend Text displayed before the post title.
@param WP_Post $post    Current post object.
@param string $post_title The post title.
@param int    $post_id    The post ID.
@param int|WP_Post $post Optional. Post ID or post object. Default is global $post.

Utilisation

// Utilisation de la fonction the_guid
$result = the_guid($post = 0);

if ($result) {
    // Votre logique ici
}

Actualités

Chargement des actualités...