graphql_password_reset_debug_capability

apply_filters( 'graphql_password_reset_debug_capability', 'list_users' );

Filters the capability a caller needs to be told why no password reset email was sent. The default is list_users because a caller who holds it can already enumerate accounts through WordPress itself, so the reason tells them nothing they could not look up directly. By default only administrators hold it. Lower it to open the debug output up, for example while developing against the anonymous flow.

  • Type: filter
  • Group: Authentication and Authorization
  • Since: 2.24.1
  • Source File: plugins/wp-graphql/src/Mutation/SendPasswordResetEmail.php

Parameters

  • $capability (string): The capability required to see the reason. Default ‘list_users’.

Source

apply_filters( 'graphql_password_reset_debug_capability', 'list_users' );