Uma área de pesquisa sobre o WordPress para devs e autores do tema



post_action_{$action} ›

Desde4.6.0
Obsoleton/a
do_action( "post_action_{$action}", $post_id )
Parâmetros:
  • (int) $post_id Post ID sent with the request.
    Required: Yes
Definido em:
Codex:

Fires for a given custom post action request.

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





Fonte

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