Uma área de pesquisa sobre o WordPress para devs e autores do tema



unregister_post_meta ›

Desde4.9.8
Obsoleton/a
unregister_post_meta ( $post_type, $meta_key )
Parâmetros: (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.
    Required: Yes
  • (string) $meta_key The meta key to unregister.
    Required: Yes
Retorna:
  • (bool) True on success, false if the meta key was not previously registered.
Definido em:
Codex:

Unregisters a meta key for posts.



Fonte

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