Plugin breaks when DISALLOW_FILE_MODS is set to true
-
The plugin initialization relies on the user capability “install plugins”. However, if plugin updates are not allowed in the admin by setting the core constant DISALLOW_FILE_MODS to true, the “install plugins” capability will always return false for administrators. I suggest switching to another admin-only capability like “manage_options”, which would be more appropriate for initializing the options page and other actions.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Plugin breaks when DISALLOW_FILE_MODS is set to true’ is closed to new replies.