xmlrpc_allow_anonymous_comments filter-hook . WP 2.7.0
Filters whether to allow anonymous comments over XML-RPC.
Usage
add_filter( 'xmlrpc_allow_anonymous_comments', 'filter_function_name_1482' ); function filter_function_name_1482( $allow ){ // filter... return $allow; }
- $allow(true/false)
- Whether to allow anonymous commenting via XML-RPC.
Default: false
Changelog
Since 2.7.0 | Introduced. |
Where the hook is called
wp-includes/class-wp-xmlrpc-server.php 3846
$allow_anon = apply_filters( 'xmlrpc_allow_anonymous_comments', false );