Skip to:
Content

BuddyPress.org

Changeset 7838


Ignore:
Timestamp:
02/11/2014 02:28:57 AM (12 years ago)
Author:
johnjamesjacoby
Message:

Add bp_locate_template action to bp_locate_template() (syncing it with bbPress) to allow code execution immediately before a template is decided.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template-loader.php

    r7837 r7838  
    9494        }
    9595    }
     96
     97    /**
     98     * This action exists only to follow the standard BuddyPress coding convention,
     99     * and should not be used to short-circuit any part of the template locator.
     100     *
     101     * If you want to override a specific template part, please either filter
     102     * 'bp_get_template_part' or add a new location to the template stack.
     103     */
     104    do_action( 'bp_locate_template', $located, $template_name, $template_names, $template_locations, $load, $require_once );
    96105
    97106    // Maybe load the template if one was located
Note: See TracChangeset for help on using the changeset viewer.