do_action( “post_action_{$action}”, int $post_id )

In this article

Fires for a given custom post action request.

Description

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

Parameters

$post_idint
Post ID sent with the request.

Source

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

Changelog

VersionDescription
4.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.