BP_Nouveau_Members::setup_actions()
Register do_action() hooks
Description
Source
File: bp-templates/bp-nouveau/includes/members/loader.php
protected function setup_actions() { $ajax_actions = array( array( 'members_filter' => array( 'function' => 'bp_nouveau_ajax_object_template_loader', 'nopriv' => true, ), ), ); foreach ( $ajax_actions as $ajax_action ) { $action = key( $ajax_action ); add_action( 'wp_ajax_' . $action, $ajax_action[ $action ]['function'] ); if ( ! empty( $ajax_action[ $action ]['nopriv'] ) ) { add_action( 'wp_ajax_nopriv_' . $action, $ajax_action[ $action ]['function'] ); } } // Actions to check whether we are in the member's default front page sidebar add_action( 'dynamic_sidebar_before', array( $this, 'user_home_sidebar_set' ), 10, 1 ); add_action( 'dynamic_sidebar_after', array( $this, 'user_home_sidebar_unset' ), 10, 1 ); // Add 'Dashboard' link to admin bar add_action( 'bp_setup_admin_bar', 'bp_nouveau_admin_bar_member_dashboard', 11 ); }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.0 | BuddyPress 3.0.0 |
BuddyBoss 1.0.0 Hooked bp_nouveau_admin_bar_member_dashboard to bp_setup_admin_bar action | 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.