BuddyPress::ap_assets_js( array $js )

Description #

Enqueue scripts.

Parameters #

  • $js
    array (Required) Javacript array.

Source #

File: addons/buddypress/buddypress.php

	public function ap_assets_js( $js ) {

		if ( ! function_exists( 'bp_current_action' ) && ! function_exists( 'bp_current_component' ) ) {
			return $js;
		}

		if ( bp_current_component() === 'qa' ) {
			$js['main']['active']  = true;
			$js['theme']['active'] = true;
		}

		return $js;
	}

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment