Skip to:
Content

BuddyPress.org

Changeset 10719


Ignore:
Timestamp:
04/27/2016 12:20:12 PM (8 years ago)
Author:
djpaul
Message:

Add new bp_rest_api_init filter for future use by our REST API integration.

Fixes #7032

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

Legend:

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

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

    r10709 r10719  
    253253
    254254/**
     255 * Fire the 'bp_rest_api_init' action, where BuddyPress registers REST API endpoints.
     256 *
     257 * @since 2.6.0
     258 */
     259function bp_rest_api_init() {
     260
     261    /**
     262     * Fires the 'bp_rest_api_init' function, where BuddyPress registers REST API endpoints.
     263     *
     264     * @since 2.6.0
     265     */
     266    do_action( 'bp_rest_api_init' );
     267}
     268
     269/**
    255270 * Fire the 'bp_customize_register' action when the Customizer has loaded,
    256271 * allowing scripts and styles to be initialized.
Note: See TracChangeset for help on using the changeset viewer.