xmlrpc_prepare_comment хук-фильтр . WP 3.4.0
Filters XML-RPC-prepared data for the given comment.
Использование
add_filter( 'xmlrpc_prepare_comment', 'filter_function_name_1803', 10, 2 ); function filter_function_name_1803( $_comment, $comment ){ // filter... return $_comment; }
- $_comment(массив)
- An array of prepared comment data.
- $comment(WP_Comment)
- Comment object.
Список изменений
С версии 3.4.0 | Введена. |
Где вызывается хук
xmlrpc_prepare_comment
wp-includes/class-wp-xmlrpc-server.php 1169
return apply_filters( 'xmlrpc_prepare_comment', $_comment, $comment );