rest_allow_anonymous_comments

Advertisement

Summery Summery

Filter whether comments can be created without authentication.

Syntax Syntax

apply_filters( 'rest_allow_anonymous_comments', bool $allow_anonymous, WP_REST_Request $request )

Description Description

Enables creating comments for anonymous users.

Parameters Parameters

$allow_anonymous

Whether to allow anonymous comments to be created. Default false.

$request

Request used to generate the response.

Source Source

File: wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply