AnsPress_BP_Hooks::ap_assets_js( array $js )

Description #

Enqueue scripts.

Parameters #

  • $js
    array (Required) Javacript array.

Source #

File: addons/free/buddypress.php

	public static 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.

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

Add your comment