There’s a native PHP function get_included_files()
for that.
Simply attach it to an action on the hook from where you want to know it. The first one is muplugins_loaded
and the last accessible on is shutdown
.
add_action( 'muplugins_loaded', function()
{
$files = get_included_files();
foreach ( $files as $f )
echo $f.'<br>';
// or...
var_dump( $files );
}
Related Posts:
- Is it possible to change the log file location for WP_DEBUG_LOG?
- Define WP_DEBUG conditionally / for admins only / log errors (append query arg for all links?)
- How do I find the version of WordPress I have from the source code?
- Control verbosity level of WP DEBUG?
- How to check if debug is true and can I use it for my own code? [duplicate]
- Suppress deprecated notices
- Debugging in WordPress
- Debug.log file is never created?
- Debugging WordPress themes with Xdebug, real time html output
- Easy code troubleshooting in wordpress
- Tutorials for Unit-Testing in WordPress and for unit-test.svn.wordpress.org?
- Nginx – Prevent Access to Debug file [closed]
- How to make debug.log timestamps local time?
- How to debug when error_log not working as expected
- Where should I tell WordPress where error_log messages should be written?
- How to set up plugin project with XDebug remote debugging in PhpStorm
- Disable Debug Log Programmatically
- How to empty debug.log when file size is above xyMB?
- Intercepting wp_mail() to view contents
- Where’s The Best Place to use Register_Shutdown_Function()?
- Is it possible to set another language for debugging messages?
- Send specific users an email when posts are published
- Super WordPress debugging toolkit and triage procedures? [duplicate]
- if(!is_user_logged_in()) returns true when 404
- How to dump/log default values that are passed to hooks/filter functions?
- xdebug connects but won’t break in WordPress with vvv
- Using debug log in production, is that a security concern?
- The plugin generated xx characters of unexpected output. How to solve?
- debugging wordpress
- Enable WordPress Debug only for Admin
- wp-includes/comment-template.php:26 – Trying to get property of non-object
- PHP-FPM WordPress Debug
- Debugging preview not working problem
- Wordress debug log is not working
- Always keep a parameter in URL?
- How can I understand what is the cause of WP death (white screen)?
- Why does WordPress keep showing me error messages?
- Debug Notice: X is deprecated since version 4.5! Use Y instead
- Debug 500 Internal Server Error on WordPress blog
- “… logged-in …” seems top of my website
- PHP Notice – Custom Function
- Suddenly lots of bugs in my WP installation? [closed]
- Why does WP_DEBUG only work after wp_debug_mode() is called? [closed]
- Notice: Undefined index [closed]
- Notice: attribute_escape is deprecated
- How to disable JS? info windows from WP-FirePHP
- How do I acquire all the meta-information for a particular page I am on?
- How to find line of code causing wordpress deprecation notices
- Best location for a debugging script
- Debug Errors, site health
- problem with size of debug.log file
- What is debug.log.old? It seems to take up a lot of space
- Comment WP_DEBUG in wp-config file
- How can I remove text above the header? [closed]
- what are WP_DEBUG conditions?
- Best place to call xdebug helper functions?
- Cannot Modify Header Information – While trying logging in
- Running xDebug and NPM at the same time?
- 3,840 cronjobs with no action!
- Solution to White Screen of Death that does not require Web Server access?
- strange characters in debug file
- Notice on core function
- Step debug wp cron run – ideas how to get this working in PHPStorm with Xdebug?
- There is no any line related the error but it says critical error
- Display Custom Taxonomy Dropdown posts
- Correct my shortcode for displaying a category?
- error log is going to the wrong location, WP_DEBUG_LOG is ignored
- A bug happens in the Footer and the code keeps appearing
- debug.log is not created
- Error on add_submenu_page() declaration
- Debug info from request handler
- Debugging Mysterious PHP Addition
- WordPress seems broken when logged of
- Finding which functions were called
- Error on debug.log PHP Stric Standards and PHP notice
- Unable to load Posts list & Getting error 500 error
- Weird bug regarding the_excerpt()
- Debugging conundrum with a problem fixed by enabling WP_DEBUG
- Can’t show debug even after modifying wp-config
- how to error_log(wp_login_url())
- How do I issue a warning in a wordpress plugin?
- Method ‘post_title’ not found in class.
- How can I turn off WP_DEBUG_LOG messages coming from a specific plugin or theme?
- Theme parts path location dump
- Changes to WordPress database using phpMyAdmin not reflected on blog
- WP Debug set to true but still wsod
- How do you get the docroot directory?
- How to solve the fopen error?
- Why debug.log doesn’t work?
- debug notice on my WordPress site [closed]
- TGM plugin error in Theme Check Plugin
- How to check whether functions is deprecated or not?
- Why does my site generate .bt files?
- Any wordpress development tool to query its functions?
- WordPress not available to file using wp-env for xdebug requests
- when I Try to Create new Post or Page it goes Draft(I can’t post Anything)
- Weird behaviour when adding terms/term_taxonomies programmatically
- WordPress visual editor broke due to non standard port?
- Debugging – trying to add search box to menus
- What tool are available in the wordpress API for debugging a plugin?