admin_post WordPress Action Hook

The admin_post hook is triggered when an administrator posts a new post. It allows you to take an action when this happens, such as notifying another user or sending an email.

do_action( 'admin_post' ) #

Fires on an authenticated admin post request where no action is supplied.


Source

File: wp-admin/admin-post.php

View on Trac


Top ↑

Changelog

Changelog
VersionDescription
2.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.