There is a constant you can define in wp-config.php
to do this.
It will also disable the theme edit, however.
<?php
// somewhere in wp-config.php
define('DISALLOW_FILE_MODS', true);
That will remove the plugin and theme file editor (which are a terrible idea anyway) and remove the ability to install plugins and themes from the admin area.
Related Posts:
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- I found this in a plugin. What does it do? is it dangerous?
- How to eliminate weird 404 errors in wp-admin?
- How to stop showing admin notice after close button has been clicked
- Where are plugins located
- Admin menu as submenu from another plugin
- Is There a WordPress Hook to Filter the Edit Posts View?
- Why does WordPress require a ftp server to be running on the webserver to transfer plugins?
- Reordering themes in admin panel
- Removing an admin page added by a 3rd party plugin. Gravity forms in this example
- Is there any record of installed plugins in the database?
- Best way to manage a lot of pages in Wp Admin [closed]
- Custom admin column disappearing when using Quick Edit [duplicate]
- WordPress admin notice in plugin function
- Using tabs for wordpress plugin
- Getting Custom Post Type content from main-site of a Multisite
- Plugin Development: WordPress processes twice on post update. How to skip process on the first?
- how to not show plugin in admin area
- “Are you sure you want to do this?” when deactivating all plugins in WordPress 4.3.1 [closed]
- How to make a WP admin button/menu similar to Jetpack Notifications?
- Getting “Fatal error: Call to undefined function wp_cache_get() in option.php” after updating a cache plugin [closed]
- How Restrict access to admin dashboard by specific static ip?
- Edits to plugin not taking effect
- Making menu link open in new tab?
- After activating a Plugin, /wp-admin is no longer accessible
- Weird problems after recovery from security breach
- Function to prevent users from trashing comments
- How to Sort the Favorite Plugins Screen Alphabetically?
- Hide extra menus from WordPress Dashboard
- ‘wp_login’ action hook not working with wp-login.php file
- 404 Error on Activate / Deactivate Plugin
- Why isn’t admin_notices displaying my text? [Simple Plugin, Beginner]
- WordPress takes too much time (100 seconds) to load – Front end and back end
- WordPress on AWS with ELB
- Edit default comments page in WP Admin
- All Users > User List > Update User Meta Field Inline
- Is there an easy way to flag posts in the admin area?
- How to hide some section in WordPress under Post
- Default WordPress WP Editor removing style tags and html tag
- Polylang : Interverting languages after development [closed]
- Dynamic admin submenu
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- Add sub menu page in your plugin
- Full list of registered scripts or styles, but from an admin options page
- How to make multiple admin pages for one plugin?
- $wpdb update query in plugin only updating one column
- Locked out of admin panel after installing HC Custom WP-Admin URL [closed]
- How can I modify page content in the admin panel?
- Display Plugin Panels Outside of Admin Areas
- Change the layout of action links under the plugin names
- getting notifications about updates only in the “core” page
- Redirect Plugins.php to New Plugin Page
- Get access to WordPress when logged out
- Why are plugin settings not all nested in one place?
- Edit page header on a custom plugin
- I cannot include a file in my plugin settings page
- 404 errors when updating options in admin dashboard
- Error activating certain plugins
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- Change Dashboard URL from wp-admin to wp-admin/index.php
- Elementor pro page editing gives error There has been a critical error on this website. Please check your site admin email inbox for instructions
- how to move a plugin-block in Edit Post page back to bottom area?
- force logged in user to stay in the dashboard
- wp_post not working, keeps redirecting to posts page
- WordPress fatal error from php protocol codes
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- Calling PHP function with AJAX
- Failed GET Request From admin.php To Fetch .min.js File From Unminifed Directory
- WordPress Admin login redirect to homepage
- Store admin page into variable
- Admin login substantially slower on production server
- wordpress plugin translation not working
- How can I share my wordpress site with a friend?
- Continous audio play in pages
- Set plugin page as homepage
- The Commercial tab is missing from the Plugins page when trying to update Types 1.7
- Admin Logged In Notify Globaly
- Disable default posts (Posts,Pages,Comments and Media) in wp-admin
- wp-admin will not redirect to wp-login.php
- Getting 404 page not found error while trying to access add new plugin / themes
- getpost content with all formatting for admin pages
- Plugin (smart archives reloaded) crashed site / no access on admin panel
- Which filters or actions involve with index page for plugin?
- Making plugin to use different table prefix cause permission problem
- Add custom fields in the new and edit the site forms without touching the WP core
- Ajax in Plugins: returns the whole page
- Gutenberg: Dynamic Block – Show saved data in the editor
- Combining JS files to one script
- How do I add custom fields to the “Edit page” admin screen?
- ERROR: Cookies are blocked due to unexpected output – no access to FTP
- Mixed content warning on doctype in admin
- Child Plugin Admin Panel
- Ajax in wordpress [duplicate]
- Notifications Bar on home page only
- List all posts in a particular page [closed]
- WordPress Plugin and other pages not opening
- warning wp session
- WordPress website is redirecting on some different shopping page
- PHP FATAL ERROR
- /wp-admin/plugins.php takes ages to load, and then 404s