Changeset 10711 for trunk/src/bp-members/bp-members-functions.php
- Timestamp:
- 04/15/2016 04:59:34 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-members/bp-members-functions.php (modified) (31 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/bp-members-functions.php
r10665 r10711 36 36 * In general, fallback values are only used during initial BP page creation, 37 37 * when no slugs have been explicitly defined. 38 * 39 * @since 1.5.0 38 40 */ 39 41 function bp_core_define_slugs() { … … 75 77 * need backward compatibility with BP_Core_User::get_users(), filter the 76 78 * bp_use_legacy_user_query value, returning true. 79 * 80 * @since 1.2.0 77 81 * 78 82 * @param array|string $args { … … 159 163 * Return the domain for the passed user: e.g. http://example.com/members/andy/. 160 164 * 165 * @since 1.0.0 166 * 161 167 * @param int $user_id The ID of the user. 162 168 * @param string|bool $user_nicename Optional. user_nicename of the user. … … 199 205 * Fetch everything in the wp_users table for a user, without any usermeta. 200 206 * 207 * @since 1.2.0 208 * 201 209 * @param int $user_id The ID of the user. 202 210 * @return array … … 293 301 * This function is sensitive to the BP_ENABLE_USERNAME_COMPATIBILITY_MODE, 294 302 * so it will return the user_login or user_nicename as appropriate. 303 * 304 * @since 1.0.0 295 305 * 296 306 * @param int $user_id User ID to check. … … 436 446 * Return the email address for the user based on user ID. 437 447 * 448 * @since 1.0.0 449 * 438 450 * @param int $uid User ID to check. 439 451 * @return string The email for the matched user. Empty string if no user … … 473 485 * 474 486 * Optional parameters will return just the name or just the URL. 487 * 488 * @since 1.0.0 475 489 * 476 490 * @param int $user_id User ID to check. … … 599 613 * Fetch the display name for a user. 600 614 * 615 * @since 1.0.1 616 * 601 617 * @param int|string|bool $user_id_or_username User ID or username. 602 618 * @return string|bool The display name for the user in question, or false if … … 644 660 * Return the user link for the user based on user email address. 645 661 * 662 * @since 1.0.0 663 * 646 664 * @param string $email The email address for the user. 647 665 * @return string The link to the users home base. False on no match. … … 662 680 /** 663 681 * Return the user link for the user based on the supplied identifier. 682 * 683 * @since 1.0.0 664 684 * 665 685 * @param string $username If BP_ENABLE_USERNAME_COMPATIBILITY_MODE is set, … … 692 712 * {@link bp_core_get_active_member_count()}. 693 713 * 714 * @since 1.2.0 715 * 694 716 * @return int The total number of members. 695 717 */ … … 717 739 /** 718 740 * Return the total number of members, limited to those members with last_activity. 741 * 742 * @since 1.6.0 719 743 * 720 744 * @return int The number of active members. … … 920 944 * Check whether a user has been marked as a spammer. 921 945 * 946 * @since 1.6.0 947 * 922 948 * @param int $user_id The ID for the user. 923 949 * @return bool True if spammer, otherwise false. … … 983 1009 /** 984 1010 * Check whether a user has been marked as deleted. 1011 * 1012 * @since 1.6.0 985 1013 * 986 1014 * @param int $user_id The ID for the user. … … 1215 1243 * Get the last activity for a given user. 1216 1244 * 1245 * @since 1.9.0 1246 * 1217 1247 * @param int $user_id The ID of the user. 1218 1248 * @return string Time of last activity, in 'Y-m-d H:i:s' format, or an empty … … 1294 1324 * Primarily used for self-deletions, as requested through Settings. 1295 1325 * 1326 * @since 1.0.0 1327 * 1296 1328 * @param int $user_id Optional. ID of the user to be deleted. Default: the 1297 1329 * logged-in user. … … 1379 1411 * 1380 1412 * Uses multibyte functions when available on the PHP build. 1413 * 1414 * @since 1.0.0 1381 1415 * 1382 1416 * @param string $str String to be upper-cased. … … 1426 1460 * Delete last_activity data for the user when the user is deleted. 1427 1461 * 1462 * @since 1.0.0 1463 * 1428 1464 * @param int $user_id The user ID for the user to delete usermeta for. 1429 1465 */ … … 1443 1479 * Check whether the logged-in user can edit settings for the displayed user. 1444 1480 * 1481 * @since 1.5.0 1482 * 1445 1483 * @return bool True if editing is allowed, otherwise false. 1446 1484 */ … … 1465 1503 /** 1466 1504 * Flush illegal names by getting and setting 'illegal_names' site option. 1505 * 1506 * @since 1.2.5 1467 1507 */ 1468 1508 function bp_core_flush_illegal_names() { … … 1473 1513 /** 1474 1514 * Add BuddyPress-specific items to the illegal_names array. 1515 * 1516 * @since 1.2.7 1475 1517 * 1476 1518 * @param array|string $value Illegal names as being saved defined in … … 1642 1684 * Validate a user name and email address when creating a new user. 1643 1685 * 1686 * @since 1.2.2 1687 * 1644 1688 * @param string $user_name Username to validate. 1645 1689 * @param string $user_email Email address to validate. … … 1745 1789 * Validate blog URL and title provided at signup. 1746 1790 * 1791 * @since 1.2.2 1792 * 1747 1793 * @todo Why do we have this wrapper? 1748 1794 * … … 1768 1814 /** 1769 1815 * Process data submitted at user registration and convert to a signup object. 1816 * 1817 * @since 1.2.0 1770 1818 * 1771 1819 * @todo There appears to be a bug in the return value on success. … … 1866 1914 * Create a blog and user based on data supplied at user registration. 1867 1915 * 1916 * @since 1.2.2 1917 * 1868 1918 * @param string $blog_domain Domain requested by user. 1869 1919 * @param string $blog_path Path requested by user. … … 1894 1944 /** 1895 1945 * Activate a signup, as identified by an activation key. 1946 * 1947 * @since 1.2.2 1896 1948 * 1897 1949 * @param string $key Activation key. … … 2136 2188 * during normal registration, XProfile data is provided directly by the user. 2137 2189 * 2190 * @since 1.2.0 2191 * 2138 2192 * @param int $user_id ID of the user. 2139 2193 * @return bool … … 2163 2217 /** 2164 2218 * Get the avatar storage directory for use during registration. 2219 * 2220 * @since 1.1.0 2165 2221 * 2166 2222 * @return string|bool Directory path on success, false on failure. … … 2200 2256 * Send activation email to a newly registered user. 2201 2257 * 2202 * @since 2.5.0 Add the $user_login parameter. 2258 * @since 1.2.2 2259 * @since 2.5.0 Add the $user_login parameter. 2203 2260 * 2204 2261 * @param int|bool $user_id ID of the new user, false if BP_SIGNUPS_SKIP_USER_CREATION is true. … … 2322 2379 /** 2323 2380 * Redirect away from wp-signup.php if BP registration templates are present. 2381 * 2382 * @since 1.1.0 2324 2383 */ 2325 2384 function bp_core_wpsignup_redirect() { … … 2742 2801 */ 2743 2802 function bp_get_current_member_type() { 2803 2804 /** 2805 * Filters the "current" member type, if one is provided, in member directories. 2806 * 2807 * @since 2.3.0 2808 * 2809 * @param string $value "Current" member type. 2810 */ 2744 2811 return apply_filters( 'bp_get_current_member_type', buddypress()->current_member_type ); 2745 2812 }
Note: See TracChangeset
for help on using the changeset viewer.