A WordPress-centric search engine for devs and theme authors



unregister_post_meta ›

Since4.9.8
Deprecatedn/a
unregister_post_meta ( $post_type, $meta_key )
Parameters: (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
Returns:
  • (bool) True on success, false if the meta key was not previously registered.
Defined at:
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 );
}