bp_nouveau_members_enqueue_scripts()

Enqueue the members scripts


Source Source

File: bp-templates/bp-nouveau/includes/members/functions.php

function bp_nouveau_members_enqueue_scripts() {
	// Neutralize Ajax when using BuddyPress Groups & member widgets on default front page
	if ( bp_is_user_front() && bp_nouveau_get_appearance_settings( 'user_front_page' ) ) {
		wp_add_inline_style(
			'bp-nouveau',
			'#member-front-widgets #groups-list-options,
			#member-front-widgets #members-list-options,
			#member-front-widgets #friends-list-options {
				display: none;
			}'
		);
	}

	if ( bp_is_user_members_invitations_list() ) {
		wp_enqueue_script( 'bp-nouveau-member-invites' );
	}
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.