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?
- 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?
- 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?
- Weird problems after recovery from security breach
- 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 on AWS with ELB
- Edit default comments page in WP Admin
- All Users > User List > Update User Meta Field Inline
- 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]
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- 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]
- 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
- Mowing site to another domain in simplest way
- Why are plugin settings not all nested in one place?
- WordPress as heavily personalized content management portal, and somewhat like dropbox [closed]
- Edit page header on a custom plugin
- I cannot include a file in my plugin settings page
- 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
- Trigger jQuery to add events after AJAX-loading table in admin plugin
- 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
- Add custom WordPress admin page with pretty url via code
- Get full URL of WP plugin admin page
- WordPress Admin login redirect to homepage
- WordPress Plugin PHP Not Calling Function
- Is admin section completely customizable in terms of styling?
- Not able to upload Plugins/ Theme from Admin backend
- 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
- Disable plugin on admin page
- The Commercial tab is missing from the Plugins page when trying to update Types 1.7
- Admin Logged In Notify Globaly
- 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?
- 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]
- How to display content depending on the Woocommerce Product Category
- WordPress Plugin and other pages not opening
- The Admin page isn’t showing in the sidebar of the dashboard
- warning wp session
- Submitting form to admin-post.php WordPress
- /wp-admin/plugins.php takes ages to load, and then 404s
- Stop the user if login from the cookies
- Fatal Error in my WP “Call to undefined function get_option()”
- Secure way to add JS Script to WordPress filesystem
- Not applying update field (acf) in my plugin
- Plugin for better Backend Search? [closed]
- Show only those pages that are created by the specific logged in user in WordPress