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



wp_trash_post ›

Since3.3.0
已弃用n/a
do_action( 'wp_trash_post', $post_id )
参数:
  • (int) $post_id Post ID.
    Required: Yes
定义在:
文档:

Fires before a post is sent to the trash.





源码

do_action( 'wp_trash_post', $post_id );