the_meta_key

FILTER wp-includes\post-template.php (ligne 1158) github
Filters the HTML output of the li element in the post custom fields list.

Paramètres

Entrée :
$html, $key, $value
Sortie :
@param string $html  The HTML output for the li element.
@param string $key   Meta key.
@param string $value Meta value.

Utilisation

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

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

Actualités

Chargement des actualités...