Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php | apply_filters | 465 | /** * Filters whether comments can be created via the REST API without authentication. * * Enables creating comments for anonymous users. * * @since 4.7.0 * * @param bool $allow_anonymous Whether to allow anonymous comments to * be created. Default `false`. * @param WP_REST_Request $request Request used to generate the * response. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
bool | $allow_anonymous | Whether to allow anonymous comments to |
WP_REST_Request | $request | Request used to generate the |