Make WordPress Core

Changeset 53560

Timestamp:
06/23/2022 06:57:24 PM (2 years ago)
Author:
johnbillion
Message:

Themes: Add actions to template loading to assist with collecting debug info.

This introduces the following new actions which wrap the process of loading a template file:

  • wp_before_load_template
  • wp_after_load_template

Props rmccue, tabrisrp, peterwilsoncc

Fixes #54541

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/template.php

    r51003 r53560  
    714714
    715715    if ( $load && '' !== $located ) {
     716
     717
     718
     719
     720
     721
     722
     723
     724
     725
     726
     727
    716728        load_template( $located, $require_once, $args );
     729
     730
     731
     732
     733
     734
     735
     736
     737
     738
     739
     740
    717741    }
    718742
Note: See TracChangeset for help on using the changeset viewer.