Set the constant DISALLOW_FILE_MODS
to TRUE
in your wp-config.php
:
const DISALLOW_FILE_MODS = TRUE;
See the Codex for background information:
Setting this constant also disables the Plugin and Theme editor (i.e. you don’t need to set
DISALLOW_FILE_MODS
andDISALLOW_FILE_EDIT
, as on its ownDISALLOW_FILE_MODS
will have the same effect).
It will also prevent installing or uninstalling plugins, themes and updating the WordPress core.
This will not affect the Git deployment.
Related Posts:
- Deploying Updated or New Plugins That Modify the wp_options Table
- How should I structure a WP website project using git and updating from WP dashboard?
- git and local wordpress: how to handle wordpress updates?
- Trigger Plugin database update after git pull
- How to update WordPress plugins properly using git?
- Is Git/GitHub a good WordPress deployment solution?
- What is your best practice to execute one-time scripts?
- WP-CLI not recognizing commercial plugin updates
- Set custom messages for post update/save
- How can I manually upgrade translations?
- Automating the Backup Process (30+ websites)
- Update to older wordpress version from admin?
- Auto-updating WordPress from a local zip file
- How can I sync WordPress plugin settings between environments?
- Permissions to get autoupdate to work
- Permissions to wp-content folder in Windows Server 2012
- How to force function to run as the last one when saving the post?
- Block updates by Server
- WordPress 5.5 AutoUpdate schedule
- Can’t preview drafts after upgrade to 4.0!
- WordPress Version 5 – Another update is currently in progress
- register_activation_hook and updating
- Why won’t my site automatically apply updates after upgrade to 3.7?
- What are the details for function argument wp_update_plugin()
- Changing plugin slug with update
- Necessary user, group and permissions for core updates
- Reverting from a newer version of WordPress to an older version
- Update Failed: There has been a critical error on your website
- How to notify my plugin users about new version releases?
- Good methodology for upgrading a large/complex sites?
- Upgrading themes never works
- How can the temporary update directory be changed?
- Unable to update wordpress
- Auto backup before automatic WordPress updates
- WordPress not showing upgrade to latest version
- Deploy WordPress From Local Docker to Hosting Provider
- Why does WordPress 4.2.2 require FTP to update?
- Workflow for working with git and WordPress
- Updating client websites on a regular basis
- Some wp-admin folder file deleted when WordPress upgrade
- How to display user’s nickname by default instead of username
- Worpdress update another update is currently in progress
- Download failed cURL error 7: . Can’t update anything
- Upgrading from 3.5.2 to 3.9.1
- Git beginner: Keeping track of on-server changes
- WP 5 upgrade and ALTER TABLE wp_post … post_password
- Install translation files that should survive updates [duplicate]
- best practice on pushing staging development (database/uploads) to the live server
- Fresh new install or keep old version
- Updating WordPress core with zero downtime – I mean zero
- Automatic updates and merging manual changes
- WordPress curl timing out and saying ‘Moved Permanently’
- WordPress and plugins can’t update (“inconsistent file permissions” error)?
- Is there a way to schedule automatic WordPress core updates?
- Updating a page won’t have any effect
- How does one dismiss the ‘upgrade notice’ when managing upgrades with SVN?
- Keep getting update notifcations despite there is nothing to update
- Initial wordpress deploy via git
- Why would a WordPress site go into maintenance mode without me doing anything?
- cannot update wordpress from 3.4.2 to 3.5
- Is it safe to update from 2.6.2 to the newest version?
- Where in the backend can I get information about the current WordPress version I am using?
- A shorter way to automatically update WordPress?
- check if WordPress website has updates remotely
- Updating WP 3.9.5 without destroying my website
- After adding mo localization files to WP 3.8.1 install backend shows new update to 3.8.1
- WordPress updates
- What do WordPress auto updates include?
- How to automate post update website check?
- How to keep cache files after plugin update?
- Which directories does WordPress attempt to create when updating core and installing plugins?
- Constant for ‘barebones’ update of WordPress
- Reliability of WordPress 4 one click update
- Can an update corrupt my installation?
- WordPress current version is 5.7.5 but I’m being prompted to “upgrade” to 4.9
- Avoid removal of a file on plugin update
- IP Address Whitelist to Allow WordPress Core Auto Updates
- How to modify last posts block without losing modification on next WP update
- Css path changed after update wordpress to new version
- Disabling forced FTP credentials for any updates
- Parent Theme update was not showing on the update page
- Auto Update A WordPress Plugin from within another WordPress Manager Plugin
- How to force an update of WordPress core to a newer minor version, using the Dashboard?
- What happend if I update my website?
- How does WordPress get the upgrade URL?
- After WooCommerce-Update fucntion not working anymore
- How to allow theme update downloads to WordPress installs only?
- FS method direct on NGINX
- Manually updating plugins via FTP or SCM
- What could have changed all of the ' characters in my content to ' strings?
- update post meta front end
- WordPress Updates 3.5.2 to 3.8 Any Problem? [duplicate]
- Updating from WordPress 3.5.2 to 3.6 Errors
- Autoupdate shows current when I’m on 3.1
- Restoring from a Backup after Update
- Avoid loosing changes to theme
- Updating WordPress or plugins causes site issues (due to API, I think)
- Automated WordPress update failed to complete – but all updates fail with code -1
- add_editor_style not working after upgrade to WP v 6.2
- edit wordpress website automatically from a program