Using __FILE__ as the menu slug when adding the submenu page causes an issue when the plugin is installed in a directory other than enable-media-replace/.
By hard-coding it to match the slug used throughout the plugin, directories such as enable-media-replace-dev can be used.
Using
__FILE__
as the menu slug when adding the submenu page causes an issue when the plugin is installed in a directory other thanenable-media-replace/
.By hard-coding it to match the slug used throughout the plugin, directories such as
enable-media-replace-dev
can be used.