xmlrpc_allow_anonymous_comments WordPress Filter Hook
The xmlrpc_allow_anonymous_comments hook allows you to override the default setting of allowing anonymous comments via XML-RPC. This can be useful if you want to disable comments altogether, or if you want to require authentication for all comments.
apply_filters( 'xmlrpc_allow_anonymous_comments', bool $allow ) #
Filters whether to allow anonymous comments over XML-RPC.
Parameters
- $allow
(bool)Whether to allow anonymous commenting via XML-RPC. Default false.
Source
Changelog
Version | Description |
---|---|
2.7.0 | Introduced. |