qtranslate / qtranslate-xt

qTranslate-XT (eXTended) - reviving qTranslate-X multilingual plugin for WordPress. A new community-driven plugin soon. Built-in modules for WooCommerce, ACF, slugs and others.
GNU General Public License v2.0
553 stars 104 forks source link

Add function to check if a request is a GraphQL call. #1211

Closed EarthlingDavey closed 2 years ago

EarthlingDavey commented 2 years ago

Specifically for wp-graphql plugin: https://github.com/wp-graphql/wp-graphql - 3.3k Github stars and 20k active installs.

Add function to check if a request is a GraphQL call, and, if GraphQL call then don't do redirect or set cookies.

Without this change, WPGraphQL does not function correctly. It's default endpoint of /graphql is redirected to /xx/graphql

EarthlingDavey commented 2 years ago

Thanks bud. I appreciate your's and the other contributor's work 👊👊✌️