Just confirming, yes there is. Here is an example value:
WordPress/4.9.12; https://www.classicpress.net/?wp_compatible=true&ver=1.1.1
That’s why it isn’t working, in ClassicPress there is a User-Agent header, but it’s always pointing to www.classicpress.net. So I think you’ll want to use the site URL that you supply instead. Or, if you want an option that is less of a change from what you’re already doing, you could use some logic like the following:
- if User-Agent header is present and contains a
www.classicpress.netURL, do not use it. - if User-Agent header is present and contains a URL that is not
www.classicpress.netyou can use it. - otherwise, use the URL you supplied.
Regarding being an “official CP-compatible plugin”:
ClassicPress is based on WP 4.9 so that would be the only version requirement. If your plugin works on the WP 4.9 releases then it should work on ClassicPress also, except for very rare exceptions like the User-Agent thing we discovered here.
I assume you mean a plugin repo. We’re launching a plugin directory with our in-development v2 release (not a repo, because plugins will be hosted by the authors on GitHub).
For now we would just be adding you to the list at Plugins Confirmed Working on ClassicPress v1 but it sounds like you will be well-positioned for our v2 release and beyond.
If you have any other questions we’ll be here…