What are the implications of having main plugin file name different to plugin slug?

Question

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

0
Steve 2 months 2023-09-24T18:54:05-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse