Filters the text prepended to the post title of private posts. The filter is only applied on the front end.
$prepend, $post
Sortie :
@param string $prepend Text displayed before the post title. @param WP_Post $post Current post object.
// 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;
}
Chargement des actualités...