wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
is_protected_meta › WordPress Function
Depuis3.1.3
Dépréciéen/a
› is_protected_meta ( $meta_key, $meta_type = null )
Paramètres: (2) |
|
Retourne: |
|
Défini(e) dans: |
|
Codex: |
Determine whether a meta key is protected.
Fonctions en relation: _deprecated_argument, list_meta, update_term_meta, update_site_meta, _deprecated_file
Source
function is_protected_meta( $meta_key, $meta_type = null ) { $protected = ( '_' == $meta_key[0] ); /** * Filters whether a meta key is protected. * * @since 3.2.0 * * @param bool $protected Whether the key is protected. Default false. * @param string $meta_key Meta key. * @param string $meta_type Meta type. */ return apply_filters( 'is_protected_meta', $protected, $meta_key, $meta_type ); }