post_states_html

FILTER wp-admin\includes\template.php (ligne 2279) github
Filters the HTML string of post states.

Paramètres

Entrée :
$post_states_html, $post_states, $post
Sortie :
@param string                 $post_states_html All relevant post states combined into an HTML string for display.
@param array<string, string>  $post_states      A mapping of post state slugs to translated post state labels.
@param WP_Post                $post             The current post object.

Utilisation

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

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

Actualités

Chargement des actualités...