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



rest_allow_anonymous_comments ›

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:

Filter whether comments can be created without authentication.

Enables creating comments for anonymous users.





Quellcode

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