xmlrpc_prepare_comment WordPress Filter Hook

The xmlrpc_prepare_comment hook allows you to modify comments before they are sent via XML-RPC. This can be useful for adding or removing data from comments, or for sanitizing data before it is sent.

apply_filters( 'xmlrpc_prepare_comment', array $_comment, WP_Comment $comment ) #

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


Parameters

$_comment

(array)An array of prepared comment data.

$comment

(WP_Comment)Comment object.


Top ↑

Source

File: wp-includes/class-wp-xmlrpc-server.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More