BP_Nouveau_Activity::setup_actions()
Register do_action() hooks
Description
Source
File: bp-templates/bp-nouveau/includes/activity/loader.php
protected function setup_actions() { add_action( 'bp_nouveau_enqueue_scripts', 'bp_nouveau_activity_enqueue_scripts' ); add_action( 'bp_widgets_init', array( 'BP_Latest_Activities', 'register_widget' ) ); add_action( 'bp_nouveau_notifications_init_filters', 'bp_nouveau_activity_notification_filters' ); $bp = buddypress(); if ( bp_is_akismet_active() && isset( $bp->activity->akismet ) ) { remove_action( 'bp_activity_entry_meta', array( $bp->activity->akismet, 'add_activity_spam_button' ) ); remove_action( 'bp_activity_comment_options', array( $bp->activity->akismet, 'add_activity_comment_spam_button' ) ); } }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.