Skip to:
Content

BuddyPress.org

Changeset 10431


Ignore:
Timestamp:
01/02/2016 04:38:37 PM (5 years ago)
Author:
djpaul
Message:

Core: new action hooks for customize_register.

This will initially be used for #6592

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

Legend:

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

    r10417 r10431  
    3333add_action( 'plugins_loaded',          'bp_loaded',                 10    );
    3434add_action( 'init',                    'bp_init',                   10    );
     35add_action( 'customize_register',      'bp_customize_register',     20    ); // After WP core.
    3536add_action( 'parse_query',             'bp_parse_query',            2     ); // Early for overrides.
    3637add_action( 'wp',                      'bp_ready',                  10    );
  • trunk/src/bp-core/bp-core-dependency.php

    r10417 r10431  
    230230
    231231/**
     232 * Fire the 'bp_customize_register' action when the Customizer has loaded,
     233 * allowing scripts and styles to be initialized.
     234 *
     235 * @since 2.5.0
     236 *
     237 * @param WP_Customize_Manager $customizer Customizer instance.
     238 */
     239function bp_customize_register( WP_Customize_Manager $customizer ) {
     240
     241    /**
     242     * Fires once the Customizer has loaded, allow scripts and styles to be initialized.
     243     *
     244     * @since 2.5.0
     245     *
     246     * @param WP_Customize_Manager $customizer Customizer instance.
     247     */
     248    do_action( 'bp_customize_register', $customizer );
     249}
     250
     251/**
    232252 * Fire the 'bp_loaded' action, which fires after BP's core plugin files have been loaded.
    233253 *
Note: See TracChangeset for help on using the changeset viewer.