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?
- Capture the Selected Radio Button Value between two files in wordpress theme
- How do I create a single.php file as the default template for single posts in the twentytwentythree theme?
- Custom category code not showing all posts
- max_input_vars: how many am I using?
- Creating bulk posts with Youtube videos
- Removing non native customizer settings from a child theme
- How to show a dynamic_sidebar if main content content’s height is > a set amount?
- Random Default Avatar Function
- Set WordPress Default Template
- Can’t extend some core classes
- Hide wordpress field if data is empty in post!
- Adding country tags automatically
- write custom woocommerce templates and forms
- Implement toggle switch for theme options in settings API
- Change the site tagline (or similar) based on current page
- Using a `Template Parts` folder instead of an `Includes` folder in a Custom WordPress Theme
- Trouble creating conditional PHP for nav menu items with children for custom Walker
- Setting custom canonical urls
- Using a variable in is_page(array())
- Trigger popup in a php if/else statement
- Anyway to output the registration form like the login form with wp_login_form()?
- How do I get current page ID in WordPress customizer file?
- Only show search results with if current date is between two dates?
- database interactions using OOP
- WordPress child theme fails to override parent navigation menu in /inc/structure/header.php
- How to load a template-part based on a url wildcard?
- How to add just one specific page to widget without plugin?
- Remove one value in dismissed_wp_pointers?
- WordPress does not load page.php, return 404.php
- create a select input with menus created on a custom options page
- Taxonomy linked to pages
- How can i upload images in an admin page?
- Multiple WordPress Menus that will only display all pages
- Set the checkbox as checked by default at options page
- Parent theme CSS overriding child CSS rules
- Add child pages of parent to navbar PHP
- How can I create a list of page titles from custom meta values?
- Load a page into a div with Ajax
- Accessing data from a non-WP database/table within a page content
- Custom theme: Alternatives to long list of ‘include’ in functions.php
- WordPress blog post url on category page
- How to style options page in dashboard?
- Theme Options Page – User Updates Logo
- Changing layout with wp_customise
- WP dynamic featured image – Can’t get second featured image url
- Extending the WP_Widget_Text class
- How to use my style.css file outside of wordpress subdomain?
- How to show part of the_content?
- Wp-login appears White Screen, Error: Cannot modify header information
- How to remove the cufon script from Dzonia Lite theme [closed]
- get_the_tags() not iterating through for/while loop, but will with foreach
- Selectbox in admin panel function linking to CSS
- Can I install/embed WordPress on a ‘single page’?
- Hide categories that are not used in the post type
- How do I add custom bulk actions to multiple custom post types?
- Add_action not working in required file of functions.php
- How to set up VS Code for WP plugin/theme development in 2021? [closed]