W3cubDocs

/WordPress

do_action( ‘xmlrpc_publish_post’, int $post_id )

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

Parameters

$post_idint
Post ID.

Source

do_action( 'xmlrpc_publish_post', $post_id );

Changelog

Version Description
2.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/xmlrpc_publish_post