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



post_action_{$action} ›

Since4.6.0
已弃用n/a
do_action( "post_action_{$action}", $post_id )
参数:
  • (int) $post_id Post ID sent with the request.
    Required: Yes
定义在:
文档:

Fires for a given custom post action request.

The dynamic portion of the hook name, $action, refers to the custom post action.





源码

do_action( "post_action_{$action}", $post_id );