Detect a WordPress.com site in the plugin code
-
Hi,
Wordpress.com recently allowed their users to install all plugins from the www.ads-software.com plugin directory. This is great — plugins can now be available for a broader auditory.
Question: is there a way a plugin developer can tell a site is running on WP.com or WP.org? I mean detecting that in the plugin code. Is there any WordPress API or some “unofficial” way to tell one platform from another from inside the plugin?
The Codex pages don’t provide any tips on that, as far as I can see (https://codex.www.ads-software.com/WordPress_vs_WordPress.com).
Thanks,
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Detect a WordPress.com site in the plugin code’ is closed to new replies.