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



delete_{$meta_type}meta › WordPress动作钩子

Since3.4.0
已弃用n/a
do_action( "delete_{$meta_type}meta", $meta_id )
参数:
  • (int) $meta_id ID of the metadata entry to delete.
    Required: Yes
定义在:
文档:

Fires immediately before deleting post or comment metadata of a specific type.

The dynamic portion of the hook name, $meta_type, refers to the meta object type (post or comment).

Possible hook names include:

  • delete_postmeta
  • delete_commentmeta
  • delete_termmeta
  • delete_usermeta




源码

do_action( "delete_{$meta_type}meta", $meta_id );