AnsPress_Notification_Hook::ap_assets_js( array $js )

Description #

Enqueue scripts.

Parameters #

  • $js
    array (Required) JavaScript array.

Source #

File: addons/free/notification.php

	public static function ap_assets_js( $js ) {
		if ( is_user_logged_in() ) {
			$js['notifications']['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