• Skip to primary navigation
  • Skip to main content
  • Skip to footer
advanton usa logo

Advanton USA

  • Start
    • How to start a business, A to Z
    • Business ideas
    • Choosing a business structure
    • Get an EIN
    • SBA loans
    • Small business grants
    • Business banking
    • Franchises
  • Grow
    • Hiring your first employee
    • Taxes and bookkeeping
    • Keeping customers
    • Financing growth
    • Using AI
    • Industry data
    • Services owners use
      • USPS for small business
      • Every Door Direct Mail
      • USPS vs UPS vs FedEx
      • Yelp for Business
      • Apple Maps listing
  • Free Tools
    • Start
      • Business PlannerName, costs, pricing and a one-page plan
    • Launch
      • Launch your business onlineDomain, website and hosting, step by step
      • Brand & Print StudioCards, flyers, postcards, signs and more
      • Website builderA free website in about 10 minutes
    • Market
      • Marketing HubOnline presence, reviews and lead tracking
      • Local SEO checkerScan your site and fix local rankings
    • Grow
      • Quotes and invoicesProfessional quotes and invoices
      • Cash & Payroll PlannerCash flow, hiring costs and unpaid invoices
      • Mileage logBusiness miles at the 2026 IRS rate
      • Rewards programStamp cards that bring customers back
      • Word to PDFConvert Word documents to PDF
  • Contractors
    • Contractor website builderWebsites for 8 trades, 5 designs each
    • Websites by trade
      • Roofing
      • Remodeling
      • Painting
      • Plumbing
      • Flooring and tile
      • Electrical
      • HVAC
      • Handyman
    • Yard signs and door hangersYard signs and door hangers with a QR code
    • Marketing for contractors
    • Angi vs Thumbtack
  • Local SEO Check
    • Scan your websiteScan your site and fix local rankings
    • Plan service and town pagesScan your site and fix local rankings
    • Generate LocalBusiness schemaScan your site and fix local rankings
    • Business Profile checklistScan your site and fix local rankings
    • Compare with competitorsScan your site and fix local rankings
    • Learn the ranking factorsScan your site and fix local rankings
  • Directory
    • Browse the directoryFind local small businesses
    • Add your businessA free listing in the directory
  • Get Online
    • Launch your business onlineDomain, website and hosting, step by step
    • Free website builderA free website in about 10 minutes
    • Contractor website builderWebsites for 8 trades, 5 designs each
    • Domains and hosting
    • After you buy: help guides
      • Verify your new domain
      • Upload your website
      • Connect your domain
      • Turn on free SSL
      • Set up business email
      • Renewals
Home » How to Disable Theme Editor and Plugin Editor in WordPress

How to Disable Theme Editor and Plugin Editor in WordPress

December 7, 2018 2 Comments

disable theme editor

One of the most amazing features that WordPress offers is the ability to install themes and plugins and create a website in minutes. However, sometimes we may want to make changes to the theme or plugins by modifying the code and for this WordPress allows direct access to the themes and plugins’ files from the WordPress Dashboard to edit it as per needs. This feature is pretty handy but can be dangerous too if you are a beginner and may ruin the entire website if you don’t how to handle the code. So, let’s find out how to disable the theme editor and plugin editor in WordPress Admin Panel.

How to Disable Theme editor and Plugin editor in WordPress

WordPress allow users to edit the theme files and plugin files through the admin panel and this feature is enabled by default in all WordPress installations.

Many times users end up ruining the entire website by trying to edit the WordPress themes code or Plugin codes and for this reason you may want to disable this feature.

It is always a good idea to disable the theme editor and plugin editor in WordPress Admin panel to prevent your website from getting screwed up.

In this article, we will share with you a one line code that will disable theme and plugin editors functionality from WordPress.

So, let’s find out how to disable to the theme editor and plugin editor in WordPress with a single line of code.

  1. Access your wp-config.php file and open it. Instructions to locate your wp-config.php are in this post – How to Fix error establishing database connection in WordPress
  2. Open or choose the edit option to edit wp-config.php file and paste the following code anywhere in the file on a new line:
1 define( ‘DISALLOW_FILE_EDIT’, true );

Tip: wp-config.php file is located in the root folder of your WordPress install whether you access the hosting server through FTP or File manager in cPanel.

3. Save the file and upload back to the root folder through the file manager or FTP.

You are done with the changes and once you refresh the WordPress Admin dashboard you would notice that the theme editor and plugin editor functionality is disabled.

How to find WordPress login URL

How to Migrate WordPress from old web host to a new one

How to install WordPress Theme

Elementor Templates for WordPress

21 Best Websites to Download free WordPress Themes

23 Best Web Hosting for WordPress

Note: Build a Strong Online Presence with Business Website Free , Free company Emails and Free Success marketing for your small business like other 10000 small business owners. Get Started Free!

Starting or growing a small business? Explore industry data and business ideas by budget, or follow the step-by-step guide to starting a business.

Share this guide

Filed Under: How to guides

Reader Interactions

Comments

  1. Eddy says

    January 7, 2020 at 1:42 pm

    These are really helpful steps to disable Theme editor in WordPress. Thanks so much!

    Reply
  2. Molly Hanks says

    February 25, 2020 at 2:34 pm

    Hello there, I just want to thank you for writing this post and explaining so well on how to disable theme editor in wordpress. Really helpful!

    Thanks for sharing!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Local SEO Check Free: scan your website and see what to fix to rank in local search →

Start and grow

  • Start a business, A to Z
  • Industry data
  • Services owners use
  • Grow your business

Free tools

  • Website builder
  • Local SEO Check
  • Business Planner
  • Quotes and invoices
  • Rewards program
  • Brand & Print Studio
  • All free tools

Get online

  • Launch your business online
  • Domains and hosting
  • Verify your new domain
  • Upload your website
  • Set up business email
  • For contractors

Advanton

  • About
  • Contact
  • Business directory
  • Add your business
  • Back up your work
  • Privacy policy

Advanton Free guides and tools for US small businesses.

Advanton earns money when you buy a domain or hosting through our store. It helps keep our guides and tools free.

Footer

About ADVANTON

Free guides and tools that help small businesses start, launch online, find customers and grow.

Follow us

  • facebook
  • twitter
  • yelp

Our Associations

Contact Us

Email: info[at]advanton.com

From rest of the world, email us: info[at]advanton.com

Copyright © 2026 — ADVANTON • All rights reserved. • Privacy Policy

  • Start
  • Grow
  • Free Tools
  • Contractors
  • Local SEO Check
  • Directory
  • Get Online