Action hook 'xmlrpc_call_success_mw_editPost'

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

View Source

xmlrpc_call_success_mw_editPost

Action Hook
Description
Fires after a post has been successfully updated via the XML-RPC MovableType API.

Hook Information

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

Hook Parameters

Type Name Description
int $post_id ID of the updated post.
array $args An array of arguments to update the post.

Usage Examples

Basic Usage
<?php
// Hook into xmlrpc_call_success_mw_editPost
add_action('xmlrpc_call_success_mw_editPost', '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:6101 - How this hook is used in WordPress core
<?php
6096  		 * @since 3.4.0
6097  		 *
6098  		 * @param int   $post_id ID of the updated post.
6099  		 * @param array $args    An array of arguments to update the post.
6100  		 */
6101  		do_action( 'xmlrpc_call_success_mw_editPost', $post_id, $args ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.NotLowercase
6102  
6103  		return true;
6104  	}
6105  
6106  	/**

PHP Documentation

<?php
/**
		 * Fires after a post has been successfully updated via the XML-RPC MovableType API.
		 *
		 * @since 3.4.0
		 *
		 * @param int   $post_id ID of the updated post.
		 * @param array $args    An array of arguments to update the post.
		 */
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.