Changeset 1447909
- Timestamp:
- 07/02/2016 10:51:20 PM (10 years ago)
- Location:
- bbp-follow-users/trunk
- Files:
-
- 4 edited
-
includes/actions.php (modified) (2 diffs)
-
includes/class-bbpress-list-user.php (modified) (3 diffs)
-
js/follow.js (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bbp-follow-users/trunk/includes/actions.php
r1437955 r1447909 34 34 35 35 add_action('wp_ajax_bbpresslist_process_follow', 'bbpresslist_process_follow'); 36 add_action('wp_ajax_bbpresslist_process_follow', 'bbpresslist_process_follow'); 36 37 37 38 38 /** … … 57 57 58 58 add_action('wp_ajax_bbpresslist_process_unfollow', 'bbpresslist_process_unfollow'); 59 add_action('wp_ajax_bbpresslist_process_unfollow', 'bbpresslist_process_unfollow'); 59 60 60 61 61 ?> -
bbp-follow-users/trunk/includes/class-bbpress-list-user.php
r1437955 r1447909 40 40 $following = get_user_meta( $user_id, '_bbpresslist_following', true); 41 41 42 return $following;42 return apply_filters('bbp_follow_get_following', $following, $user_id ); 43 43 44 44 } … … 78 78 79 79 update_user_meta ( $user_id, '_bbpresslist_following', $users_in_list ); 80 do_action( 'bbp_list_user_added_following', $user_id, $users_in_list ); 80 81 update_user_meta ( $follower_id, '_bbpresslist_followers', $followers ); 82 do_action( 'bbp_list_user_added_followers', $follower_id, $followers ); 81 83 82 84 return 'follow'; … … 127 129 if ( $modified ) { 128 130 update_user_meta( $unfollow_user, '_bbpresslist_followers', $followers ); 131 do_action( 'bbp_list_user_unfollow', $unfollow_user, $followers ); 129 132 } 130 133 } -
bbp-follow-users/trunk/js/follow.js
r1437955 r1447909 25 25 26 26 success: function(results) { 27 27 28 if (results == 'follow') { 28 29 $('.follow-link .follow').attr('class', 'unfollow').text('Unfollow this user'); 29 30 } else { 30 31 $('.follow-link .unfollow').attr('class', 'follow').text('Follow this user'); 31 } 32 } 32 33 } 33 34 }); -
bbp-follow-users/trunk/readme.txt
r1437979 r1447909 4 4 Requires at least: WP 3.5 / bbPress 5 5 Tested up to: WP 4.4.x 6 Stable tag: 1. 06 Stable tag: 1.1 7 7 8 8 == Description == 9 9 10 This simple plugin allows users to follow other members on bbPress . The users can view the latest posts and replies from their followed users in a widget that can be placed anywhere on the site.10 This simple plugin allows users to follow other members on bbPress . The users can view the latest posts and replies from their followed users in a widget that can be placed anywhere on the site. 11 11 12 12 This plugin adds: … … 32 32 == Changelog == 33 33 34 = 1.1 = 35 * Add action after user is followed. 36 * Add action after user is unfollowed. 37 34 38 35 39 = 1.0 =
Note: See TracChangeset
for help on using the changeset viewer.