Un motore di ricerca WordPress per sviluppatori e autori di temi



unregister_post_meta ›

Da4.9.8
Deprecaton/a
unregister_post_meta ( $post_type, $meta_key )
Parametri: (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.
    Richiesto:
  • (string) $meta_key The meta key to unregister.
    Richiesto:
Ritorna:
  • (bool) True on success, false if the meta key was not previously registered.
Definito a:
Codex:

Unregisters a meta key for posts.



Sorgenti

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