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:
- Translate a plugin using .po .mo files
- How can I create a bash install script for my WordPress sites setup (WP+plugins+theme)?
- Sending all emails using SMTP
- __(): What if I have to pass in a variable?
- How to make Pull Requests on a wordpress.org plugin?
- Custom Taxonomy in plugin and template
- Should we use plugins that aren’t available from the official WordPress site?
- Where can I propose a new plugin?
- Disallow a user to post in certain categories
- Why allow overriding crucial pluggable functions wp_verify_nonce and wp_create_nonce?
- is_post_type_archive not working in feed
- How to edit plugin’s html? [closed]
- Changing BIGINT to INT
- Datepicker not supporting timepicker
- Add a Custom Permalink option in the Permalink Admin Screen?
- add_filter the_content in functions.php not working
- Escape special characters in image link
- Disable WordPress password reset via mails,instead notify admin about the reset request
- Can’t use the built-in wordpress install/upgrade plugin feature [closed]
- publish_post plugin hook doesn’t always pass $post->post_content
- Let user subscribe to specific categories
- WP Customer Reviews – shortcodes
- How to get a Jewish/English event calendar on a page in WordPress?
- How to cancel WordPress’ action/filter when using OOP with anonymous callback
- How to stop xmlrpc attacks without disabling component to allow JetPack to work in WordPress?
- Do action only on certain front end pages?
- Make menu page link inaccessible or disabled
- Advanced Custom Fields plugin – get text from editor field and save it in a variable
- How organize uploaded media in WP?
- Archive – same title for the first two posts
- Build a list of partners with Link, Logo and text
- How to resolve error after installing plugin? [closed]
- How to hide some section in WordPress under Post
- is there a way to link one of the field in ACF field group, to a field in a media attachment page? [closed]
- Rewrite rule not matching
- Problem with Author page redirect
- Include comments form in plugin page
- accessing wp.media api from a tinymce plugin
- Restrict access to content in conjunction with facebook connect & google login
- how to insert data in wordpress table usnig jquery ajax
- Warning: Use of undefined constant list_all – assumed ‘list_all’ (this will throw an Error in a future version of PHP)
- How to distinguish if a plugin is not installed or just not active
- WordPress Apply filter in plugin causes 500 internal error
- Meta query for comparing two dates
- How to enable customer login to customer specific admin page
- How to prevent plugins from sniffing/stealing other plugins’ options?
- Is there a plugin for feedback like Kissmetrics available? [closed]
- How to use printf to output two links?
- Retrieve options set through a plugin
- How to Include Custom Post Content From Plugin
- How to redirect to a page after the form is submitted
- Exporting Custom Taxonomy in plugin
- Add background image/layout for single page?
- Running a function with args in add_action()
- Identify current wordpress theme
- How to write a new file when new post has been published in WordPress
- Using call_user_func() within add_settings_section() within a Class
- Paypal Framework
- How to makes changes on the shop/category/tag pages but not on the product pages in woocommerce?
- Order by post_date does not work in Previous and Next post pagination
- WordPress default post categories meta box widget
- Save order without sending the invoice / order details woocommerce [closed]
- Fatal error “Call to undefined function is_plugin_active” each time the plugin is activated
- WordPress post status change from published to draft
- Getting Fatal error: Uncaught Error: Call to undefined function plugin_dir_path() when linking to another file within my wordpress plugin
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- Product Page loads terribly slow when product gallery images are added
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- How to send new visitor to a splash page for only one time in wordpress?
- Cannot display wordpress thumbnail
- How do I render content from a wp_editor in a plugin setting field?
- Only return taxonomies that are linked to a category & product
- Trying to remove a couple categories from shop page
- Enabling plugin on specific pages and subpages
- How to set plugin across network in multisite and modify it in one place?
- Call function when save setting/option in custom admin page
- How can I disable Jetpack plugin on mobile?
- Using W3 Total Cache, I set expire headers to media, css and js files,but it seems doesn’t work [closed]
- Not getting result using ajax on wordpress
- Connection lost issue
- Error when renaming option
- Can anyone tell me why I can’t edit a plugin when it is installed without having to re-install?
- URL Rewriting from a Plugin based on custom values
- Plugin De/Activation Not Firing On MultiSite install
- Change All Login/Signup Links in Plugin
- Buddypress Plugin for register user from other site’s [closed]
- Need plugins and themes from clients site [closed]
- Permissions question [closed]
- Output dropdown results into Woocommerce Order details
- Need help with restricted page for users
- Display Video as Post Thumbnail
- Display products based on sub-categories
- How to make horizontal scrolling menu [closed]
- how to embed a crop feature for cropping images uploaded by the user
- add_meta_box showing blank screen in my page
- Option value not getting updated until page refresh in WordPress
- How to create an Info Box on WordPress [closed]
- Fatal error: Uncaught Error: Call to a member function fetch_array() on bool
- Use inline callable for hooks and filters
- Error in using ‘admin_enqueue_scripts’ action through a class