Skip to:
Content

BuddyPress.org

Changeset 9312


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

Add setup_cache_groups method to BP_Component. See #5733.

File:
1 edited

Legend:

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

    r8610 r9312  
    357357        add_action( 'bp_setup_title',            array( $this, 'setup_title'            ), 10 );
    358358
     359        // Setup cache groups
     360        add_action( 'bp_setup_cache_groups',     array( $this, 'setup_cache_groups'     ), 10 );
     361
    359362        // Register post types
    360363        add_action( 'bp_register_post_types',    array( $this, 'register_post_types'    ), 10 );
     
    472475     * @since BuddyPress (1.5.0)
    473476     *
    474      * @uses do_action() Calls 'bp_{@link bp_Component::name}setup_title'.
     477     * @uses do_action() Calls 'bp_{@link bp_Component::name}_setup_title'.
    475478     */
    476479    public function setup_title() {
    477480        do_action(  'bp_' . $this->id . '_setup_title' );
     481    }
     482
     483    /**
     484     * Setup component-specific cache groups.
     485     *
     486     * @since BuddyPress (2.2.0)
     487     *
     488     * @uses do_action() Calls 'bp_setup_{@link bp_Component::name}_cache_groups'.
     489     */
     490    public function setup_cache_groups() {
     491        do_action( 'bp_' . $this->id . '_setup_cache_groups' );
    478492    }
    479493
Note: See TracChangeset for help on using the changeset viewer.