# Wordpress "Login by Auth0" ... v4 or v5?

**URL:** <https://community.auth0.com/t/wordpress-login-by-auth0-v4-or-v5/192868>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-php\
**Created:** [October 6, 2025, 10:20pm UTC](https://community.auth0.com/t/wordpress-login-by-auth0-v4-or-v5/192868 "2025-10-06T22:20:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![neilo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/neilo/32/71038_2.png) [@neilo](https://community.auth0.com/u/neilo)\
**Post date:** [October 6, 2025, 10:20pm UTC](https://community.auth0.com/t/wordpress-login-by-auth0-v4-or-v5/192868/1 "2025-10-06T22:20:15Z")

</div>

I’m trying to set up the “Login by Auth0” plugin on a Wordpress site, but I’m confused about which version is considered supported and documented.

If I try to install the plugin via the wp-admin UI (as directed in the Auth0 documentation), I am presented with the v4 plugin and there’s not even mention of a newer v5 release.

If I go to the open source project on GitHub, I find the message “v4 of the plugin is no longer supported as of June 2023. We are no longer providing new features or bugfixes for that release. Please upgrade to v5 as soon as possible.” Which isn’t possible unless I am prepared download the plugin source by hand and build.

I’m asking because I couldn’t get the v4 plugin set up properly on a modern WordPress site, and I can’t get the v5 plugin to install and activate at all.

Can someone clarify what is the appropriate Wordpress plugin version to use, and where is the correct documentation for that?

thanks

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [October 7, 2025, 7:30pm UTC](https://community.auth0.com/t/wordpress-login-by-auth0-v4-or-v5/192868/3 "2025-10-07T19:30:57Z")

</div>

Hi @neilo,

Welcome to the Auth0 Community!

I am sorry for the misunderstanding from the documentation. Our engineering team is aware of the discrepancy and are working on an update, but unfortunately we do not have an ETA.

As outlined in the Github repository we no longer provide support for the 4.x version of the Wordpress plugin, so the recommendation would definitely be installing the v5 version by following the steps outlined in the [wordpress README.md](https://github.com/auth0/wordpress/blob/5.x/README.md) documentation on Github. Also, just in case of an error occurring, this [community thread](https://community.auth0.com/t/wordpress-install-version-5/134534/9) might be useful, since it also provides a recent solution of installing the latest plugin.

Hope this helps, and if you have further questions please let me know!

Best regards,

Remus

---

<div class="post-metadata">

**Author:** ![neilo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/neilo/32/71038_2.png) [@neilo](https://community.auth0.com/u/neilo)\
**Post date:** [October 8, 2025, 8:04pm UTC](https://community.auth0.com/t/wordpress-login-by-auth0-v4-or-v5/192868/4 "2025-10-08T20:04:45Z")

</div>

That’s helpful, although now I’m troubleshooting Invalid State errors as discussed on this page [https://auth0.com/docs/customize/integrations/cms/wordpress-plugin/troubleshoot-wordpress-plugin-invalid-state-errors](https://auth0.com/docs/customize/integrations/cms/wordpress-plugin/troubleshoot-wordpress-plugin-invalid-state-errors)

---

<div class="post-metadata">

**Author:** ![neilo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/neilo/32/71038_2.png) [@neilo](https://community.auth0.com/u/neilo)\
**Post date:** [October 9, 2025, 8:19pm UTC](https://community.auth0.com/t/wordpress-login-by-auth0-v4-or-v5/192868/5 "2025-10-09T20:19:44Z")

</div>

@remus.ivan along with releasing v5 of the plugin to the WordPress directory and updating the documentation to match, could the engineering team also commit to resolving [this GitHub issue](https://github.com/auth0/wordpress/issues/892)? That would have gone a long way to making the integration simpler.

thanks

> <https://github.com/auth0/wordpress/issues/892>
>
> \### Checklist
> 
> \- \[X\] I have looked into the \[Readme\](https://github.com/auth0/…wordpress#readme) and the \[documentation\](https://auth0.com/docs/customize/integrations/cms/wordpress-plugin), and have not found a suitable solution or answer.
> \- \[X\] I have searched the \[issues\](https://github.com/auth0/wordpress/issues) and have not found a suitable solution or answer.
> \- \[X\] I have searched the \[Auth0 Community\](https://community.auth0.com) forums and have not found a suitable solution or answer.
> \- \[X\] I agree to the terms within the \[Auth0 Code of Conduct\](https://github.com/auth0/open-source-template/blob/master/CODE-OF-CONDUCT.md).
> 
> \### Describe the problem you'd like to have solved
> 
> v5 appears to have removed the hooks mentioned in this \[issue\](https://github.com/auth0/wordpress/pull/495). I am using pantheon, and need to prefix the cookie names with \`\`\`STYXKEY\_\`\`\` to avoid cookies being lost due to the CDN. 
> 
> \### Describe the ideal solution
> 
> The ideal solution would be to add an optional field to the plugin's settings in the WordPress admin dashboard to set the SDK configuration object's storage IDs with the prefix. This would save custom work needing to be done to achieve this with the plugin.
> 
> \### Alternatives and current workarounds
> 
> I achieved a workaround by adding a \`\`\`plugins\_loaded\`\`\` action in functions.php of my site as follows:
> \`\`\` PHP
> // change the auth0 cookie name to be prefixed with STYXKEY\_ for Pantheon
> function update\_auth0\_cookie\_storage\_id()
> {
> $auth0SDK = wpAuth0()-\>getSdk();
> $auth0Config = $auth0SDK-\>configuration();
> $storageId = 'STYXKEY\_' . $auth0Config-\>getSessionStorageId();
> $transientId = 'STYXKEY\_' . $auth0Config-\>getTransientStorageId();
> $auth0Config-\>setSessionStorageId($storageId);
> $auth0Config-\>setTransientStorageId($transientId);
> $auth0Config-\>setSessionStorage(new CookieStore($auth0Config, $auth0Config-\>getSessionStorageId()));
> $auth0Config-\>setTransientStorage(new CookieStore($auth0Config, $auth0Config-\>getTransientStorageId()));
> $auth0SDK-\>setConfiguration($auth0Config);
> }
> add\_action('plugins\_loaded', update\_auth0\_cookie\_storage\_id());
> \`\`\`
> I was able to update the configuration of the SDK by using this method. However, it took me a while of reading the source code of the plugin and SDK to find this solution, so I am proposing adding a setting in the Plugin settings on the WordPress admin dashboard.
> 
> \### Additional context
> 
> Pantheon Cache Docs for reference \[here\](https://docs.pantheon.io/cookies#cache-varying-cookies).

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [October 15, 2025, 4:38pm UTC](https://community.auth0.com/t/wordpress-login-by-auth0-v4-or-v5/192868/6 "2025-10-15T16:38:04Z")

</div>

Hi @neilo and sorry for the late reply.

I have reached out internally and just received a positive response that one of our Engineers will look deeper into the Github issue you have mentioned for providing a more well-rounded solution.

Thank you!

Regards,

Remus

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 29, 2025, 4:38pm UTC](https://community.auth0.com/t/wordpress-login-by-auth0-v4-or-v5/192868/7 "2025-10-29T16:38:31Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
