Uma área de pesquisa sobre o WordPress para devs e autores do tema



rest_allow_anonymous_comments ›

Desde4.7.0
Obsoleton/a
apply_filters( 'rest_allow_anonymous_comments', false, $request )
Parâmetros: (2)
  • (bool) $allow_anonymous Whether to allow anonymous comments to be created. Default `false`.
    Required: Yes
  • (WP_REST_Request) $request Request used to generate the response.
    Required: Yes
Definido em:
Codex:

Filter whether comments can be created without authentication.

Enables creating comments for anonymous users.





Fonte

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