BP_Nouveau::enqueue_scripts()

Enqueue the required JavaScript files

Description

Source

File: bp-templates/bp-nouveau/buddypress-functions.php

	public function enqueue_scripts() {

		wp_enqueue_script( 'bp-nouveau-magnific-popup' );

		wp_enqueue_script( 'bp-nouveau' );

		if ( bp_is_register_page() || bp_is_user_settings_general() ) {
			wp_enqueue_script( 'bp-nouveau-password-verify' );
		}

		if ( is_singular() && bp_is_blog_page() && get_option( 'thread_comments' ) ) {
			wp_enqueue_script( 'comment-reply' );
		}

		/**
		 * Fires after all of the BuddyPress Nouveau scripts have been enqueued.
		 *
		 * @since BuddyPress 3.0.0
		 */
		do_action( 'bp_nouveau_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.