Skip to:
Content

BuddyPress.org

Changeset 9314


Ignore:
Timestamp:
01/08/2015 01:26:15 AM (10 years ago)
Author:
johnjamesjacoby
Message:

Introduce bp_setup_cache_groups() sub-action, for hooking into and appropriately prioritizing cache group additions. See #5733.

Location:
trunk/src/bp-core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-actions.php

    r9210 r9314  
    5454add_action( 'bp_loaded', 'bp_setup_components',         2  );
    5555add_action( 'bp_loaded', 'bp_include',                  4  );
     56add_action( 'bp_loaded', 'bp_setup_cache_groups',       5  );
    5657add_action( 'bp_loaded', 'bp_setup_widgets',            6  );
    5758add_action( 'bp_loaded', 'bp_register_theme_packages',  12 );
  • trunk/src/bp-core/bp-core-dependency.php

    r9308 r9314  
    8282function bp_setup_widgets() {
    8383    do_action( 'bp_register_widgets' );
     84}
     85
     86/**
     87 * Fire the 'bp_setup_cache_groups' action, where cache groups are registered.
     88 *
     89 * @since BuddyPress (2.2.0)
     90 */
     91function bp_setup_cache_groups() {
     92    do_action( 'bp_setup_cache_groups' );
    8493}
    8594
Note: See TracChangeset for help on using the changeset viewer.