post_action_{$action} WordPress Action Hook
The post_action_{$action} hook is triggered after an action is fired on a post. This hook can be used to perform an action after a post is created, updated, or deleted.
do_action( "post_action_{$action}", int $post_id ) #
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_id
(int)Post ID sent with the request.
Source
File: wp-admin/post.php
Changelog
Version | Description |
---|---|
4.6.0 | Introduced. |