private_title_format

FILTER wp-includes\post-template.php (ligne 160) github
Filters the text prepended to the post title of private posts. The filter is only applied on the front end.

Paramètres

Entrée :
$prepend, $post
Sortie :
@param string  $prepend Text displayed before the post title.
@param WP_Post $post    Current post object.

Utilisation

// Modifier la valeur avec le filtre 'private_title_format'
add_filter('private_title_format', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($prepend) {
    // Modifier la valeur
    return $prepend;
}

Actualités

Chargement des actualités...