W3cubDocs

/WordPress

apply_filters( ‘xmlrpc_allow_anonymous_comments’, bool $allow )

Filters whether to allow anonymous comments over XML-RPC.

Parameters

$allowbool
Whether to allow anonymous commenting via XML-RPC.
Default false.

Source

$allow_anon = apply_filters( 'xmlrpc_allow_anonymous_comments', false );

Changelog

Version Description
2.7.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/xmlrpc_allow_anonymous_comments