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.
Source
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |