BuddyPress::__construct()
Description #
Initialize the class
Source #
File: addons/buddypress/buddypress.php
protected function __construct() { add_post_type_support( 'question', 'buddypress-activity' ); add_post_type_support( 'answer', 'buddypress-activity' ); anspress()->add_action( 'bp_init', $this, 'bp_init' ); anspress()->add_action( 'ap_enqueue', $this, 'ap_assets_js' ); anspress()->add_action( 'bp_setup_nav', $this, 'content_setup_nav' ); anspress()->add_action( 'bp_init', $this, 'question_answer_tracking' ); anspress()->add_action( 'bp_activity_entry_meta', $this, 'activity_buttons' ); anspress()->add_filter( 'bp_activity_custom_post_type_post_action', $this, 'activity_action', 10, 2 ); anspress()->add_filter( 'ap_the_question_content', $this, 'ap_the_question_content' ); anspress()->add_action( 'bp_notifications_get_registered_components', $this, 'registered_components' ); anspress()->add_action( 'bp_notifications_get_notifications_for_user', $this, 'notifications_for_user', 10, 8 ); anspress()->add_action( 'ap_after_new_answer', $this, 'new_answer_notification' ); anspress()->add_action( 'ap_publish_comment', $this, 'new_comment_notification' ); anspress()->add_action( 'ap_trash_question', $this, 'remove_answer_notify' ); anspress()->add_action( 'ap_trash_answer', $this, 'remove_answer_notify' ); anspress()->add_action( 'ap_trash_answer', $this, 'remove_comment_notify' ); anspress()->add_action( 'ap_unpublish_comment', $this, 'remove_comment_notify' ); anspress()->add_action( 'before_delete_post', $this, 'remove_answer_notify' ); anspress()->add_action( 'the_post', $this, 'mark_bp_notify_as_read' ); anspress()->add_action( 'ap_ajax_bp_loadmore', $this, 'bp_loadmore' ); }
Expand full source code Collapse full source code View on GitHub: addons/buddypress/buddypress.php:51
Add your comment