xmlrpc_publish_post WordPress Action Hook

The xmlrpc_publish_post hook is triggered when a post is published via the XML-RPC interface. This hook can be used to perform any actions that need to be taken when a post is published, such as notifying other systems or sending an email to the author.

do_action( 'xmlrpc_publish_post', int $post_id ) #

Fires when _publish_post_hook() is called during an XML-RPC request.


Parameters

$post_id

(int)Post ID.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

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

Show More