unregister_post_meta
unregister_post_meta ( $post_type, $meta_key )
Parameters:- (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.
- (string) meta_key The meta key to unregister.
Returns:- (bool) True on success, false if the meta key was not previously registered.
Defined at: - Introduced in WordPress: 4.9.8
- Deprecated in WordPress: —
Description
Unregisters a meta key for posts.