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



delete_post ›

Since1.2.0
已弃用n/a
do_action( 'delete_post', $postid )
参数:
  • (int) $postid Post ID.
    Required: Yes
定义在:
文档:

Fires immediately before a post is deleted from the database.





源码

do_action( 'delete_post', $postid );