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



delete_{$meta_type}meta ›

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, $meta_type, refers to the meta object type (post or comment).





源码

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