wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



unregister_post_meta › WordPress Function

Depuis4.9.8
Dépréciéen/a
unregister_post_meta ( $post_type, $meta_key )
Paramètres: (2)
  • (string) $post_type Post type the meta key is currently registered for. Pass an empty string if the meta key is registered across all existing post types.
    Requis: Oui
  • (string) $meta_key The meta key to unregister.
    Requis: Oui
Retourne:
  • (bool) True on success, false if the meta key was not previously registered.
Défini(e) dans:
Codex:

Unregisters a meta key for posts.



Source

function unregister_post_meta( $post_type, $meta_key ) {
	return unregister_meta_key( 'post', $meta_key, $post_type );
}