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' ) {
			wp_enqueue_script( 'anspress-theme' );
		}
	}

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