The theme editor is located under /wp-admin/theme-editor.php and uses get_current_theme(); to give you the first files to edit. From the returned array of theme data, it uses 'Template Dir' to locate the directory and 'Template Files' to give you a list of files to edit (loops through the files with a foreach loop). For stylesheets it uses 'Stylesheet Dir' and 'Stylesheet Files' to loop through.
Point is that:
1. there are no filters or hooks, so you’d need to modify core directly (which is not recommended, as your changes would be overwritten on update) and
2. you’d need to write a function that reads the whole folder, finds all subfolders and then another one to find all containing files and last loop through them too.
Related Posts:
- How can I reduce the amount of files loaded/included per plugin?
- How can I make content disappear when a user logs in?
- Prevent CSS/JS loading when plugin is not used
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- Is there an earlier hook than login_head or login_enqueue_scripts?
- Can someone please tell me what is wrong with my plugin?
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- Redirect to another page using contact form 7? [closed]
- how to prevent all css and javascripts files from loading
- How to execute a plugin on a single page only?
- get specific value of a array | PHP
- How do I override all stylesheets and scripts without a plugin
- uncaught TypeError: Cannot read properties of null (reading ‘classList’) custom plugin
- How do I minify a plugins CSS/JS code?
- Custom Plugin scripts from admin working in frontend
- Overriding inline !important CSS with Javscript code snippet with media query
- Speeding up WordPress on a Local Network
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- Speed issues because of CSS & JavaScript
- Best use adding user generated JS/CSS to a theme with a plugin
- How to set up php,javascript and css to allow for our finished product to be displayed within a page?
- Possible jquery / library conflict in plugin usage
- contact 7 plugin stops some pages from working properly
- Element works, but not on wordpress site [duplicate]
- Eliminate Render blocking CSS?
- Sudden ERR_HTTP2_PROTOCOL_ERROR on every JS and CSS files loads
- Restricting a Plugin to Only Load its CSS and JS on Selected Pages?
- How do I sanitize a javascript text?
- How can a Firebase user registration and login be integrated into a WordPress site?
- How do I make my wordpress page more friendly for mobile viewers?
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- Check javascript file Proper way in functions.php
- how would I include a js file with tags into wordpress?
- Google Maps and Yandex Maps doesn’t work correctly
- Styling readme.html in plugin?
- Creating an Exit Confirmation Popup
- How to override my plugin’s php classes with duplicates that are in my child theme folder
- plugin style conflicts, how to override? [closed]
- Admin Panel pagination link styles
- How to style the RSS wordpress?
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- Change upload folder for a CPT
- Delete mobile menu button [closed]
- Widgets Scripts don’t load – but load when I reload the page
- Is there a loading priority for login_enqueue_scripts?
- How do I use add_action on custom widget?
- Override plugin styles via my custom theme
- Overwrite a plugin’s CSS?
- MediaElement.js works on one site but not the other?
- How to limit image size for the entire website ? But without editing the post (css/plugin?!)
- Pass user role to javascript code inside body
- Images under 1MB are not being compressed
- Access post title from custom meta box on title change
- Is there a way to remove a tooltip of a plugin via custom CSS? [closed]
- Adding a simple Javascript file with a plugin
- Custom CSS not being added by plugin
- Dropdown menu on click change
- Plugin Admin panel checkbox unchecked after submit
- Send Array from JS to php file then insert it in wp database through a plugin
- How to override Plugin javascript function : $(‘body’).on(‘change’,’.class’)
- Connect / Login WordPress Hosted Website or Blog with NodeJs
- How to fetch WordPress database values in JavaScript widget
- Possible way of having multiple Gutenberg instances for a page?
- How to change the WordPress Plugin Watson Assistant Chatbot BOX Size?
- Woocommerce add products to cart
- Show popup on click
- how i retreive the post content while editing it in real time however the editor is tinymce or gutenberg
- Javascript not getting injected into page
- Why does my custom plugin only function correctly once per page?
- How to get a specific string from a url
- Does anybody know how to insert a complete jquery plugin into a wordpress elementor-page?
- JS working when used normally but not in wordpress
- make p tag collapsed after 3 rows
- General Term for this form Field
- Problem with wordpress has_action() function
- Woocommerce – Change variations output
- How to fix shifting header after installing speed / cache plugins?
- How to disable/enable PHP plugin functionality based on a TinyMCE toggle-button
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- Customizer preview URL not updating when settings reset to default
- wp_enqueue_scrpts seems not to get called
- Creating wordpress admin page panel [Theme Option]
- Get plugin to background of page
- Having trouble going from Jfiddle to implementing in WordPress :(
- How to create a dashboard for logged-in users with custom functionality? [closed]
- Creating a user ‘add custom field’ section
- Javascript not working
- Creating custom URL for async content
- How do I convince this button to do something when it is clicked?
- disable lightbox in a plugin [closed]
- Plugin – including external javascript calling google maps
- How to load css files in a specific order
- adding a css file to my plugin
- How to create post comparison in wordpress
- WordPress shortcode plugin not working
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- Count div with class (.length) only shows 0 [closed]
- Vanilla javascript in custom gutenberg block not working
- Elementor Form : client side javascript validation