bp_core_get_js_dependencies()

Get the JavaScript dependencies for buddypress.js.

Description

Return

(array) The JavaScript dependencies.

Source

File: bp-core/bp-core-cssjs.php

605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
function bp_core_get_js_dependencies() {
 
    /**
     * Filters the javascript dependencies for buddypress.js.
     *
     * @since BuddyPress 2.0.0
     *
     * @param array $value Array of javascript dependencies for buddypress.js.
     */
    return apply_filters( 'bp_core_get_js_dependencies', array(
        'jquery',
        'bp-confirm',
        'bp-widget-members',
        'bp-jquery-query',
        'bp-jquery-cookie',
        'bp-jquery-scroll-to',
        'wp-util',
        'wp-i18n'
    ) );
}

Changelog

Changelog
Version Description
BuddyPress 2.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.