wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_allow_anonymous_comments › WordPress Filter Hooks

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

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

Enables creating comments for anonymous users.




Sorgenti

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