Skip to main content
2 of 2
added 7 characters in body
Wyck
  • 18k
  • 4
  • 46
  • 67

chrisguitarguy's solution is the way to go ^^.

Just to add when a plugin is activated the folder/name is stored in the get_option, so using

 get_option( 'active_plugins', array());

will still store the folder/name even if they are changed. If you change the folder or plugin name on an active plugin the plugin will be de-activated, and thus require activation and storing of the correct folder/name.

Though some plugins will break if you do so, and thus not be activated so it's outside your concern.

Wyck
  • 18k
  • 4
  • 46
  • 67