WordPress does not really track what theme files are loaded beyond some basic things (for example $template
global holds main template file).
You can use PHP’s native get_included_files()
to list all PHP source files loaded during request and narrow it down to your theme. Note that for more complex themes this will have not only templates, but likely a lot of framework files as well.
Related Posts:
- Why have on every line
- Function to return true if current page has child pages
- Include a external PHP file into a WordPress Custom Template
- List of all theme customizer control types?
- Get author full name
- How to remove hardcoded characters from playlists?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Setting up the child theme so as to enable right-to-left WordPress?
- Understanding WordPress child theme custom JS loading
- Overriding a theme redux file in child theme
- Widgets not showing in my custom theme
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- Displaying theme options in css
- Customizer: Output default value in Customizer CSS
- Where to edit the template that is generating the code for dynamic_sidebar left-sidebar in the Understrap theme? [closed]
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- Converting HTML Template to WordPress Theme
- Customizer: active_callback and sanitize_callback incompatibility?
- Menu jumping when calling it via PHP
- Compare the old get_theme_mod($name) to the new get_theme_mod($name) return value
- Custom Background by Page IDs
- How to obtain the current website URL in my theme?
- What exactly do this function declared into functions.php file of a WP theme?
- Underscore – Self hosted fonts
- What file have I to create in my custom WordPress theme to show all the post belonging to a specific category?
- How to specify the path for require_once in a child theme?
- Warning: printf(): Too few arguments in helpers.php file
- Removing “Powered by” footer using child theme PHP [closed]
- Is there a hack for using is_page() within the function.php file?
- Need advice on theme customizer and child themes
- pass html code to worpdress
- Trying to change featured image from 180×180 to full width on home page
- WordPress files break if I edit them, but adding a closing PHP tag fixes it
- WordPress child theme, creating a custom php template page
- Add Text Area To Child Theme’s Home Page
- How to get php file based on URL in WordPress
- How can I customize a WordPress theme before it’s downloaded?
- Where can I find the declaration of `$_wp_theme_features`?
- Display tab title as ‘blog tagline | blog title’
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- How to add button to top of theme customizer?
- PHP unit testing WordPress?
- Show the most popular post per week
- Add a class to links in the visual editor (how to get old dialog back)
- Creating custom Woocommerce attribute taxonomies from a plugin
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- How to override a non pluggable and non hookable function in a WordPress parent theme?
- Is it recommended to pass some data to scripts in `wp_enqueue_scripts`?
- PHP Customization: Taxonomies and Queries, why? [closed]
- My Own layout in WooCommerce pages [closed]
- Change the site tagline (or similar) based on current page
- create a select input with menus created on a custom options page
- Parent theme CSS overriding child CSS rules
- How to style options page in dashboard?
- Theme Options Page – User Updates Logo
- How to pick the default selected value in wordpress dropdown?
- Replace part of a parent-theme customizer in the child-theme
- Customize position of social icons in upme plugin [closed]
- Two queries for a WP_User_Query search work perfectly apart, but not together
- How to edit widget code to add unique class name to each div?
- Media Upload , file name changed automatically
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- Syntax error when I try to insert my loop into an unordered list? [closed]
- Royalty-Free Sliders used in theme development
- Reason to add a name of the theme like (‘menu-1’ => __( ‘Primary’, ‘twentynineteen’ ),) in PHP?
- customize wordpress database error page
- WordPress get_media_embedded
- Ajax search shows all results when user empties input?
- List post by title length
- get_comments_number() returns 0
- Why the dynamic_sidebar() call is putted into an ul tag?
- WP insert post Redirect after function has executed
- Remove Custom Post Category In WordPress Slug Using .Htaccess
- Uncaught TypeError: extract(): Argument #1 ($array) must be of type array, null given
- How can I add diffrent editable text fields?
- Header is not displaying on certain pages of wordpress theme [closed]
- Featured image in menu wordpres
- How can I update the price when someone enters postcode or zip code in woocommerce checkout page?
- Looping through dummy posts and showing them in the main index.php
- How to change the structure/order of sections in a WordPress theme? [closed]
- Redirect after login depending on the URL
- Customizer: How to Sanitize a Decimal Number Range
- PHP code printed into CSS classes
- random woocommerce categories are not showing when count enabled?
- Get the image title and alt from custom query
- What syntax is this? “{{post.price}}”
- Real time notification on user profile after new comment
- Add two or multiple functions in WordPress Post or Page
- WordPress error on my website
- WordPress get_post_meta issue
- Best way to define a database with product codes and back-end support?
- wp_customize_image_control default value
- Edit the Publish Widget Options
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- Predefine Magazine Style Layouts
- Twig+WordPress how to use array arguments inside a function?
- WordPress PHP8 Critical Error in class-wp-widget.php