Skip to content

Instantly share code, notes, and snippets.

@zarei-dev
Created March 28, 2022 03:40
Show Gist options
  • Save zarei-dev/132e30da4c6f459cb377f0ebd3634ccb to your computer and use it in GitHub Desktop.
Save zarei-dev/132e30da4c6f459cb377f0ebd3634ccb to your computer and use it in GitHub Desktop.
Disable file editing tool in your WordPress admin panel.
<?php
if( !defined('DISALLOW_FILE_EDIT') ){
define( 'DISALLOW_FILE_EDIT', true );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment