wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_allow_anonymous_comments › WordPress Filter Hooks

Seit4.7.0
Veraltetn/v
apply_filters( 'rest_allow_anonymous_comments', false, $request )
Parameter: (2)
  • (bool) $allow_anonymous Whether to allow anonymous comments to be created. Default `false`.
    Erforderlich: Ja
  • (WP_REST_Request) $request Request used to generate the response.
    Erforderlich: Ja
Definiert in:
Codex:

Filters whether comments can be created via the REST API without authentication.

Enables creating comments for anonymous users.





Quellcode

$allow_anonymous = apply_filters( 'rest_allow_anonymous_comments', false, $request );