xmlrpc_wp_insert_post_data filter-hookWP 3.4.0

Filters post data array to be inserted via XML-RPC.

Usage

add_filter( 'xmlrpc_wp_insert_post_data', 'wp_kama_xmlrpc_wp_insert_post_data_filter', 10, 2 );

/**
 * Function for `xmlrpc_wp_insert_post_data` filter-hook.
 * 
 * @param array $post_data      Parsed array of post data.
 * @param array $content_struct Post data array.
 *
 * @return array
 */
function wp_kama_xmlrpc_wp_insert_post_data_filter( $post_data, $content_struct ){

	// filter...
	return $post_data;
}
$post_data(array)
Parsed array of post data.
$content_struct(array)
Post data array.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

wp_xmlrpc_server::_insert_post()
xmlrpc_wp_insert_post_data
wp-includes/class-wp-xmlrpc-server.php 1681
$post_data = apply_filters( 'xmlrpc_wp_insert_post_data', $post_data, $content_struct );

Where the hook is used in WordPress

Usage not found.