Action hook 'xmlrpc_call_success_blogger_newPost'

in WP Core File wp-includes/class-wp-xmlrpc-server.php at line 5186

View Source

xmlrpc_call_success_blogger_newPost

Action Hook
Description
Fires after a new post has been successfully created via the XML-RPC Blogger API.

Hook Information

File Location wp-includes/class-wp-xmlrpc-server.php View on GitHub
Hook Type Action
Line Number 5186

Hook Parameters

Type Name Description
int $post_id ID of the new post.
array $args An array of new post arguments.

Usage Examples

Basic Usage
<?php
// Hook into xmlrpc_call_success_blogger_newPost
add_action('xmlrpc_call_success_blogger_newPost', 'my_custom_function', 10, 2);

function my_custom_function($post_id, $args) {
    // Your custom code here
}

Source Code Context

wp-includes/class-wp-xmlrpc-server.php:5186 - How this hook is used in WordPress core
<?php
5181  		 * @since 3.4.0
5182  		 *
5183  		 * @param int   $post_id ID of the new post.
5184  		 * @param array $args    An array of new post arguments.
5185  		 */
5186  		do_action( 'xmlrpc_call_success_blogger_newPost', $post_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
5187  
5188  		return $post_id;
5189  	}
5190  
5191  	/**

PHP Documentation

<?php
/**
		 * Fires after a new post has been successfully created via the XML-RPC Blogger API.
		 *
		 * @since 3.4.0
		 *
		 * @param int   $post_id ID of the new post.
		 * @param array $args    An array of new post arguments.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-includes/class-wp-xmlrpc-server.php
Related Hooks

Related hooks will be displayed here in future updates.