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.


Top ↑

Parameters

$post_id

(int)Post ID sent with the request.


Top ↑

Source

File: wp-admin/post.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
4.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.