The string used in WordPress to identify the plugin is:
plugin_basename($file);
… where $file
is a file with the plugin headers.
So if you are in your plugin, get the slug with:
$slug = plugin_basename( __FILE__ );
The string used in WordPress to identify the plugin is:
plugin_basename($file);
… where $file
is a file with the plugin headers.
So if you are in your plugin, get the slug with:
$slug = plugin_basename( __FILE__ );