Plugin directory name change error
-
If you change the name of the plugin directory, for example to add the version, you get the WordPress error “You do not have sufficient permissions to access this page.”
This is because the plugin directory is hard coded in all of the links to upload media.
It should be replaced with something like the following:
$plugin_dir = basename(plugin_dir_path(__FILE__)); upload.php?page=$plugin_dir/...
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Plugin directory name change error’ is closed to new replies.