BP_Nouveau_Members::setup_actions()
Register do_action() hooks
Description Description
Source 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'] ); } } add_action( 'bp_nouveau_enqueue_scripts', 'bp_nouveau_members_enqueue_scripts' ); // 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 ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |