wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



post_action_{$action} › Les Actions WordPress

Depuis4.6.0
Dépréciéen/a
do_action( "post_action_{$action}", $post_id )
Paramètres:
  • (int) $post_id Post ID sent with the request.
    Requis: Oui
Défini(e) dans:
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 );