bp_nouveau_activity_enqueue_scripts()

Enqueue the activity scripts

Description

Source

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

function bp_nouveau_activity_enqueue_scripts() {
	if ( ! bp_is_activity_component() &&
	     ! bp_is_group_activity() &&
	     ! bp_is_media_component() &&
	     ! bp_is_media_directory() &&
	     ! bp_is_group_media() &&
	     ! bp_is_group_albums()
	) { // media popup overlay needs activity scripts
		return;
	}

	wp_enqueue_script( 'bp-nouveau-activity' );
}

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.