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
- opening and closing elementor-widget-container
- How to resolve Multisite Speed issues
- Localiztion in javascript
- WP-Cufon adding extra space in my paragraphs in Firefox and Chrome
- How do I write into a file (css)
- ‘Customize’ button in admin bar for CSS
- Pass a php string to a javascript variable
- Why isn’t “background-image: url”working with Bootstrap carousel on WP?
- How to add page using HTML, CSS and JS?
- Problem in loading javascript in footer
- JQuery not working in my plugin [closed]
- How to generate CSS from a shortcode within a plugin
- prettyPhoto media loading very slowly in Chrome
- Add stylesheets and js to template files when shortcode is used
- Custom CSS for plugin form
- How do I modify the position of a plugin?
- How to load plugin after page is loaded – pagespeed issues
- add mediaelement.js plugins into WordPress video player control bar
- Shortcode button dosent work for all posts. Work for first post only
- Get IDs of Images from Gallery Block in InnerBlocks of a Custom Gutenberg Block
- React JSX in WordPress Plugin Development
- Internationalization autocomplete JS variable
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Using custom JS plugins with WordPress?
- Override Javascript in a Plugin?
- plugin style conflicts, how to override? [closed]
- How to disable specific plugin in mobile version?
- How to disable CSS rule in Twentythirteen style.css?
- Theme’s default styles are overriding my plugin’s custom CSS
- Remove ALL css for a specific plugin page
- Best approach to fetch data from wp options to js file or php file
- Globally register styles but enqueue them selectively
- CSS from textarea in options page to frontend what to do
- custom changes removed after plugin update
- W3 Total cache “empty all caches” and no stylesheets render [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]
- Updating the Drag-To-Share eXtended share URLs?
- Scripts at the end of the page
- wordpress site | All-in-one-cufon IE Issue
- Enqueue WordPress plugin scripts below all other JS
- How to add Internationalization in WordPress using Javascript/React?
- Can I use custom CSS and js plugin to put JavaScript in to validate my forms
- Change upload folder for a CPT
- WPBakery JS composer unused css [closed]
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- How to get the element ID from new menu list that added with add_filter()?
- Override Plugin Script Fucnction in WordPress
- Time consuming callbacks in customizer
- Trouble with plugin styles in admin area of WordPress
- Add a CSS class based on categroy id to archive pages
- Changing “elapsed time” to “time remaining” on MP3-jPlayer audio player with CSS or PHP changes
- Modifying a .js Function for Print [QZ Tray, WooCommerce POS]
- Child Pages Short Code plug-in and hover capabilities?
- add image crop function like in wp customizer
- Removing included CSS file that doesn’t exist
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- Executing Javascript when a New Post is Published
- Set featured image using javascript in post editor
- Display encrypted content on my website
- How to hide CSS by default and show on button press
- Is there a standard way to listen for an on change event of a posts featured image
- (Sticky Row) How do i make a row sticky in wpbakery page builder?
- How to edit content before post update
- How to create an input field, and base the output on spreadsheet data? [closed]
- Trying to create a private area custom for each user where they upload images to a server [closed]
- WordPress plugin output formatting
- wp.media javascript issue with on select
- how to access all user dashboard on fronted page [closed]
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- Ajax Search Lite: Customize Autoscroll