xmlrpc_prepare_comment filter-hookWP 3.4.0

Filters XML-RPC-prepared data for the given comment.

Usage

add_filter( 'xmlrpc_prepare_comment', 'wp_kama_xmlrpc_prepare_comment_filter', 10, 2 );

/**
 * Function for `xmlrpc_prepare_comment` filter-hook.
 * 
 * @param array      $_comment An array of prepared comment data.
 * @param WP_Comment $comment  Comment object.
 *
 * @return array
 */
function wp_kama_xmlrpc_prepare_comment_filter( $_comment, $comment ){

	// filter...
	return $_comment;
}
$_comment(array)
An array of prepared comment data.
$comment(WP_Comment)
Comment object.

Changelog

Since 3.4.0 Introduced.

Where the hook is called

wp_xmlrpc_server::_prepare_comment()
xmlrpc_prepare_comment
wp-includes/class-wp-xmlrpc-server.php 1212
return apply_filters( 'xmlrpc_prepare_comment', $_comment, $comment );

Where the hook is used in WordPress

Usage not found.