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.
Source
File: wp-includes/post.php
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |