WordPress开发者和主题制作者的搜索引擎



unregister_post_meta ›

Since4.9.8
已弃用n/a
unregister_post_meta ( $post_type, $meta_key )
参数: (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
返回:
  • (bool) True on success, false if the meta key was not previously registered.
定义在:
文档:

Unregisters a meta key for posts.



源码

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