WP Manifestindependent plugin directory
manifest / developer / wp-graphql-extensions

WPGraphQL Extensions

Disable DEBUG_LOGS_INACTIVE message and add validateUserCredentials mutation

★ 0stars
v1.0.0latest · 6mo ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/biohzrdmx/wp-graphql-extensions/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Disable DEBUG_LOGS_INACTIVE message and add validateUserCredentials mutation

Usage

Just copy/upload wpgraphql-extensions.php to wp-content/mu-plugins and you're set.

This plugin disables the DEBUG_LOGS_INACTIVE that appears on the extensions item of the response, for cleanliness.

Also it adds a new validateUserCredentials mutation:

mutation validateUserCredentials(
  $password: String!,
  $username: String!
) {
  validateUserCredentials(input: {
    password: $password,
    username: $username
  }) {
    isValid
    userId
  }
}

It can return isValid a boolean that indicates whether the credentials are valid or not and userId which is an integer with the user ID.

{
  "data": {
    "validateUserCredentials": {
      "isValid": true,
      "userId": 1
    }
  }
}

Important: It is strongly recommended that you should enable the Restrict Endpoint to Authenticated Users option on WPGraphQL settings if you add this mutation to avoid security issues, since having this mutation open to the public effectively creates an attack vector for credential bruteforcing.

This plugin is intended for headless GraphQL clients, so that you can have a login on your site and check those credentials on a headless WordPress instance which acts as CMS, specifically for migrating users gradually (hence the lack of a register mutation).

I made another plugin to add personal access tokens which can be used with this to connect both instances without having to rely on app passwords or exposing admin user credentials, you can check it here.

Issues

If you have any problem with the plugin please don't hesitate open an issue and include as much data as possible about your environment: WordPress version, WPGraphQL version, server type/version, OS, etc.

Licensing

MIT licensed

Copyright © 2026 biohzrdmx.

Releases

1 release.

Tag
Published
v1.0.0 latest
May 8, 2026 6mo ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.