bp_nouveau_customizer_enqueue_scripts()

Enqueue needed JS for our customizer Settings & Controls

Description

Source

File: bp-templates/bp-nouveau/includes/customizer.php

281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
function bp_nouveau_customizer_enqueue_scripts() {
    $min = bp_core_get_minified_asset_suffix();
 
    wp_enqueue_script(
        'bp-nouveau-customizer',
        trailingslashit( bp_get_theme_compat_url() ) . "js/customizer{$min}.js",
        array( 'jquery', 'jquery-ui-sortable', 'customize-controls', 'iris', 'underscore', 'wp-util' ),
        bp_nouveau()->version,
        true
    );
 
    wp_localize_script( 'bp-nouveau-customizer', 'BP_Customizer', [
        'emailCustomizerUrl'    => bp_email_get_redirect_to_customizer_url(),
        'platformCustomizerUrl' => admin_url( 'customize.php?autofocus[panel]=bp_nouveau_panel' )
    ] );
 
    /**
     * Fires after Nouveau enqueues its required javascript.
     *
     * @since BuddyPress 3.0.0
     */
    do_action( 'bp_nouveau_customizer_enqueue_scripts' );
}

Changelog

Changelog
Version Description
BuddyPress 3.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.