Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 82367

Detect a WordPress.com site in the plugin code

$
0
0

Replies: 0

Hi,

Wordpress.com recently allowed their users to install all plugins from the WordPress.org 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.wordpress.org/WordPress_vs_WordPress.com).

Thanks,


Viewing all articles
Browse latest Browse all 82367

Trending Articles