What are the implications of having main plugin file name different to plugin slug?
I have inherited a plugin. If the plugin is called example
and is in /wp-content/plugins/example
what are the implications if the main plugin file is called example-plugin.php
and not just example.php
?
I know that the plugin will work, but are there any unforeseen problems that could arise?
I do understand that changing it will cause the plugin to deactivate, but there is a very clear notice.
FWIW this has come about because I am trying to use the internal updater on a custom Pro version of a plugin (that isn’t in the repository) using this: getbutterfly.com/custom-wordpress-plugin-update-server and it only works if the plugin file name matches the plugin slug
Leave an answer