BP_Nouveau_Notifications::setup_actions()
Register do_action() hooks
Description
Source
File: bp-templates/bp-nouveau/includes/notifications/loader.php
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | protected function setup_actions() { add_action( 'bp_init' , 'bp_nouveau_notifications_init_filters' , 20 ); add_action( 'bp_nouveau_enqueue_scripts' , 'bp_nouveau_notifications_enqueue_scripts' ); $ajax_actions = array ( array ( 'notifications_filter' => array ( 'function' => 'bp_nouveau_ajax_object_template_loader' , 'nopriv' => false, ), ), ); 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' ] ); } } } |
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.