Changeset 10147 for trunk/src/bp-friends/bp-friends-template.php
- Timestamp:
- 09/27/2015 05:08:37 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-friends/bp-friends-template.php (modified) (22 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-friends/bp-friends-template.php
r9995 r10147 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Friends Template Functions. … … 8 7 */ 9 8 10 // Exit if accessed directly 9 // Exit if accessed directly. 11 10 defined( 'ABSPATH' ) || exit; 12 11 … … 14 13 * Output the friends component slug. 15 14 * 16 * @since BuddyPress (1.5.0)15 * @since 1.5.0 17 16 * 18 17 * @uses bp_get_friends_slug() … … 24 23 * Return the friends component slug. 25 24 * 26 * @since BuddyPress (1.5.0)25 * @since 1.5.0 27 26 */ 28 27 function bp_get_friends_slug() { … … 31 30 * Filters the friends component slug. 32 31 * 33 * @since BuddyPress (1.5.0)32 * @since 1.5.0 34 33 * 35 34 * @param string $value Friends component slug. … … 41 40 * Output the friends component root slug. 42 41 * 43 * @since BuddyPress (1.5.0)42 * @since 1.5.0 44 43 * 45 44 * @uses bp_get_friends_root_slug() … … 51 50 * Return the friends component root slug. 52 51 * 53 * @since BuddyPress (1.5.0)52 * @since 1.5.0 54 53 */ 55 54 function bp_get_friends_root_slug() { … … 58 57 * Filters the friends component root slug. 59 58 * 60 * @since BuddyPress (1.5.0)59 * @since 1.5.0 61 60 * 62 61 * @param string $value Friends component root slug. … … 206 205 * Output the "Add Friend" button in the member loop. 207 206 * 208 * @since BuddyPress (1.2.6)207 * @since 1.2.6 209 208 */ 210 209 function bp_member_add_friend_button() { … … 234 233 * Filters text used to denote total friend count. 235 234 * 236 * @since BuddyPress (1.2.0)235 * @since 1.2.0 237 236 * 238 237 * @param string $value String of the form "x friends". … … 278 277 * Filters the ID of current user in the friend request loop. 279 278 * 280 * @since BuddyPress (1.2.10)279 * @since 1.2.10 281 280 * 282 281 * @param int $user_id ID of current user in the friend request loop. … … 309 308 * Filters the status of friendship between logged in user and given user. 310 309 * 311 * @since BuddyPress (1.2.10)310 * @since 1.2.10 312 311 * 313 312 * @param string $value String status of friendship. Possible values are 'is_friend', 'not_friends', 'pending'. … … 419 418 * Filters the HTML for the add friend button. 420 419 * 421 * @since BuddyPress (1.1.0)420 * @since 1.1.0 422 421 * 423 422 * @param string $button HTML markup for add friend button. … … 479 478 * Filters the total pending friendship requests for a user. 480 479 * 481 * @since BuddyPress (1.2.0)480 * @since 1.2.0 482 481 * 483 482 * @param array|int An array of user IDs if found, or a 0 if none are found. … … 508 507 * Filters the ID of the friendship between the logged in user and the current user in the loop. 509 508 * 510 * @since BuddyPress (1.2.0)509 * @since 1.2.0 511 510 * 512 511 * @param int $friendship_id ID of the friendship. … … 537 536 * Filters the URL for accepting the current friendship request in the loop. 538 537 * 539 * @since BuddyPress (1.0.0)538 * @since 1.0.0 540 539 * 541 540 * @param string $value Accept-friendship URL. … … 566 565 * Filters the URL for rejecting the current friendship request in the loop. 567 566 * 568 * @since BuddyPress (1.0.0)567 * @since 1.0.0 569 568 * 570 569 * @param string $value Reject-friendship URL. … … 593 592 * Filters the total friend count for a given user. 594 593 * 595 * @since BuddyPress (1.2.0)594 * @since 1.2.0 596 595 * 597 596 * @param int $value Total friend count. … … 626 625 * Filters the total friendship request count for a given user. 627 626 * 628 * @since BuddyPress (1.2.0)627 * @since 1.2.0 629 628 * 630 629 * @param int $value Friendship request count. … … 638 637 * Display the number of friends in user's profile. 639 638 * 640 * @since BuddyPress (2.0.0)639 * @since 2.0.0 641 640 * 642 641 * @uses bp_friends_get_profile_stats() to get the stats. … … 652 651 * Return the number of friends in user's profile. 653 652 * 654 * @since BuddyPress (2.0.0)653 * @since 2.0.0 655 654 * 656 655 * @param array|string $args before|after|user_id … … 688 687 * Filters the number of friends in user's profile. 689 688 * 690 * @since BuddyPress (2.0.0)689 * @since 2.0.0 691 690 * 692 691 * @param string $value Formatted string displaying total friends count.
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)