wpseek.com
A WordPress-centric search engine for devs and theme authors



post_action_{$action} › WordPress Action Hooks

Since4.6.0
Deprecatedn/a
do_action( "post_action_{$action}", $post_id )
Parameters:
  • (int) $post_id Post ID sent with the request.
    Required: Yes
Defined at:
Codex:

Fires for a given custom post action request.

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





Source

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