Filters values for the meta key dropdown in the Custom Fields meta box. Returning a non-null value will effectively short-circuit and avoid a potentially expensive query against postmeta.
null, $post
Sortie :
@param array|null $keys Pre-defined meta keys to be used in place of a postmeta query. Default null. @param WP_Post $post The current post object.
// Modifier la valeur avec le filtre 'postmeta_form_keys'
add_filter('postmeta_form_keys', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre(null) {
// Modifier la valeur
return null;
}
Chargement des actualités...