Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_allow_anonymous_comments ›

Da4.7.0
Deprecaton/a
apply_filters( 'rest_allow_anonymous_comments', false, $request )
Parametri: (2)
  • (bool) $allow_anonymous Whether to allow anonymous comments to be created. Default `false`.
    Richiesto:
  • (WP_REST_Request) $request Request used to generate the response.
    Richiesto:
Definito a:
Codex:

Filter whether comments can be created without authentication.

Enables creating comments for anonymous users.





Sorgenti

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