right now, i use global variable $table_prefix to differ whether i work on WP or WPMU. I need this global for my plugin. But is there any better way to check whether your pluggin is working on wp or wpmu ?
any suggestion will be great
right now, i use global variable $table_prefix to differ whether i work on WP or WPMU. I need this global for my plugin. But is there any better way to check whether your pluggin is working on wp or wpmu ?
any suggestion will be great
You could define a constant:
e.g.
define('ENVIRONMENT', 'WP');
define('ENVIRONMENT', 'WPMU');