php - How do you Disable / Enable plugins tab on wordpress?
Get the solution ↓↓↓I am not talking about plugins, but the plugins tab itself.
The previous dev has disabled updates for wordpress and also disabled the plugins tab and the plugin view.
This is not something thats rare, I remember a previous site where another dev did this so the owner doesnt make breaking changes to the site.
I remember he had commented out some code and added new code in place.
Answer
Solution:
You can use something like this in functions.php file of the child theme.
function admin_remove_plugin_menu(){
remove_menu_page( 'plugins.php' );
}
add_action('admin_menu', 'admin_remove_plugin_menu');
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: use the option --with-all-dependencies (-w) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.