I am not sure you can do that, however, you can turn off/on the editor for plugins or themes using the following in wp-config.php
define('DISALLOW_FILE_EDIT', true );
This will hide the editor in the WordPress admin section.
Remember, this setting is controlled by the site administrator, and it is up to him/her to show/hide the editor, so you do not have control over it.
Also remember, even if you were able to hide the files in the sub-directories, those files are installed on your clients’ file systems. This means that they have full access to those files, not necessarily from within the WordPress admin section, but rather from within the file system. If you are concerned about your code being exposed, then you should fine different ways of protecting it.
Related Posts:
- Using window.onload with Ubermenu
- Ordering taxonomies by rank
- Embed plugin into Custom Page Template
- What is @Action in WordPress?
- Plugin Options not being output
- My homemade plugin is trying to update to someone else’s plugin
- Is there a way to embed a Google Docs form in a page without using plugins?
- Advanced Custom Fields – Disable Users to Edit Custom Fields
- Retrieving links and names of images from a NextGEN gallery [closed]
- How to have sample page for each new register users in a membership website
- REST route from a plugin not working if WordPress is installed in a subdirectory
- Plugin development: what to prefix?
- Submit Form data to another page via Ajax (WordPress Way)
- Add Shortcode tag in Widget/Sidebar
- Getting taxonomy images to display on single-post with their terms
- How to edit a published post?
- Is changing post from category in a large blog a good practice?
- Contact Form 7 – Show image on successful send? [closed]
- Send email to multiple addresses on Contact Form 7, but exclude personal details on all but one
- Display site language setting in source code
- simple-job-board Plugin throws an error on live server [closed]
- How to return the values from a row where a value occurs for the first time among the rows available?
- Pagination shows Same posts
- ‘Notice: Undefined index’ error on plugins page [closed]
- Plugin generating unexpected output – on WP mysql dump import
- WordPress plugin: Getting posts where checkbox selected
- Smarter navigation plugin and custom taxonomies
- How to auto strip hyperlinks & images in wordpress post
- How can I temporarily remove content from all pages, but leave up URL?
- WP_Table_List and ob_start() memory limit
- Best practice when modifying plugins CSS [duplicate]
- How to embed a new string in url?
- Make 2 different WooCommerce checkout pages?
- WP Editor, save content and category on frontend
- Adding a pagenavi to function for displaying bookmarks
- google +1 like polling system
- A good heatmapping plugin for WordPress? (No 3rd-party services please) [closed]
- TN3 Plugin Not Working Under IIS / WebMatrix
- Including content from legacy app: via plugin or custom content?
- How to install a translation for a WP plugin?
- Plugin for TinyMCE to create reference to other posts
- Why may one avoid Jetpack plugin? [closed]
- Limiting title characters in the AZIndex plugin
- What is the most efficient way of adding additional functionaliy for admin only
- XML Sitemap Generator and 404 problem
- How do I work with the SlideDeck plug-in?
- Why is adoptStyles-css stylesheet link added to every page?
- Stopping WordPress’ WYSIWYG Editor from Converting “didn’t” into “didn””””’t”?
- Disable WordPress Theme Browser and Plugin Browser
- Add hook after content without formatting
- Sold out Label for variable products which are partially sold out
- User loggedin as Subscriber form not sending
- wc_get_template_part doesnt display the content [duplicate]
- admin_post hook not firing function inside class
- Thumbnail image doesn’t show up in Shortcode output
- how to auto random increment for post view
- Merging new theme and plugins from development site to production
- how to split and upload a theme on wordpress?
- Fatal error: require_once(): Failed opening required
- .com creates automated link in post
- shortcodes not working [dt_carousel & [dt_fancy_image
- Load google font script based on optgroup label selected
- Easiest way to load/fire a handful of functions, IF checkbox is checked?
- post id or permalink auto-incrementing number and reset everyday
- WordPress sitemap “Extra content at the end of the document”
- Unload a woff file from WordPress
- Crazy redirect happening with no redirects set up
- How To Use htaccess to Rewrite Link Structure for a Page that is Generated Programatcially
- Programmatically generate new pages for a site based on page template and content elements accessed via DB
- Looking for Image Slider that is based on default WP Media Library
- Custom Icon assigned to menu items not working for multi-site networks
- catch urls with specific pattern and show specific content for them by plugin
- Not displaying Woocommerce product page in lightbox
- Title and date of last post stays on page even after replacing the_content
- Above the fold plugin error “The Proxy Cache directory contains n cache entries.”
- User / membership Plugin [closed]
- Can we validate data from jquery
- Fetching WP.me shortlinks for posts using WP Rest API
- How to display widget in front end?
- Shows warning when enable “wp_gallery_custom_links” plugin with Themify Builder
- WordPress environment not loading properly
- show-hide based on select option jquery wordpress
- Where to store media uploaded by the plugin?
- error_log() not working in add_filter auto update callback
- Follow author on muti-user WordPress site
- Creating a register settings class that supports extended classes
- Add a checkbox in plugin options page and make it actually work
- Integrating a hosted app with wordpress using the API
- WordPress crashes when I click add new plugin
- wp_insert_post hook not being called with wp_publish_post or wp_insert_post?
- Calling a function from a link in WordPress
- WP_Query Date Filtering Inclusive Being Ignored
- Live coding in WordPress
- Making a particular kind of search engine with WordPress?
- SMS messaging twordpress plugin [closed]
- is_plugin_active() not defined on active plugin, in the thumbnails.php file
- wordpress plugin | short code issue
- WordPress site keeps getting flagged as malware [closed]
- Looking for a home page carousel [closed]
- Sell “create a post”, paid account for post creation