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.


Top ↑

Source

File: wp-includes/class-wp-xmlrpc-server.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More