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' );
}
Expand full source code Collapse full source code View on GitHub: addons/free/buddypress.php:344
Add your comment