- Timestamp:
- 04/24/2023 02:32:27 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/friends/loader.php
r13414 r13461 4 4 * 5 5 * @since 3.0.0 6 * @version 6.1.06 * @version 12.0.0 7 7 */ 8 8 … … 69 69 // Register the friends Notifications filters 70 70 add_action( 'bp_nouveau_notifications_init_filters', array( $this, 'notification_filters' ) ); 71 72 add_action( 'bp_init', array( $this, 'register_ajax_actions' ) ); 71 73 } 72 74 … … 118 120 } 119 121 } 122 123 /** 124 * Register Friends Ajax actions. 125 * 126 * @since 12.0.0 127 */ 128 public function register_ajax_actions() { 129 $ajax_actions = array( 'friends_remove_friend', 'friends_add_friend', 'friends_withdraw_friendship', 'friends_accept_friendship', 'friends_reject_friendship' ); 130 131 foreach ( $ajax_actions as $ajax_action ) { 132 bp_ajax_register_action( $ajax_action ); 133 } 134 } 120 135 } 121 136
Note: See TracChangeset
for help on using the changeset viewer.