AnsPress_BP_Hooks::notifier_setup_globals()

Description #

Setup AnsPress notification.

Source #

File: addons/free/buddypress.php

	public static function notifier_setup_globals() {
		global $bp;

		$bp->ap_notifier = new stdClass();
		$bp->ap_notifier->id = 'ap_notifier';
		$bp->ap_notifier->slug = BP_AP_NOTIFIER_SLUG;
		$bp->ap_notifier->notification_callback = array( __CLASS__, 'ap_notifier_format' );

		// Register this in the active components array.
		$bp->active_components[ $bp->ap_notifier->id ] = $bp->ap_notifier->id;

		do_action( 'notifier_setup_globals' );
	}

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