Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- SHUTDOWN LOG INCLUDED FILES
- ========================================================================== */
- add_action( 'shutdown', __NAMESPACE__ . '\\my_shutdown_callback' );
- function my_shutdown_callback() {
- $included_files = get_included_files();
- foreach ($included_files as $filename) {
- error_log("$filename\n");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement