Changeset 10149
- Timestamp:
- 09/27/2015 05:43:55 AM (9 years ago)
- Location:
- trunk/src/bp-members
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/admin/bp-members-admin-classes.php
r10026 r10149 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Members List Classes … … 8 7 */ 9 8 10 // Exit if accessed directly 9 // Exit if accessed directly. 11 10 defined( 'ABSPATH' ) || exit; 12 11 … … 16 15 * List table class for signups admin page. 17 16 * 18 * @since BuddyPress (2.0.0)17 * @since 2.0.0 19 18 */ 20 19 class BP_Members_List_Table extends WP_Users_List_Table { … … 23 22 * Signup counts. 24 23 * 25 * @since BuddyPress (2.0.0)24 * @since 2.0.0 26 25 * 27 26 * @access public … … 33 32 * Constructor. 34 33 * 35 * @since BuddyPress (2.0.0)34 * @since 2.0.0 36 35 */ 37 36 public function __construct() { … … 50 49 * manipulation required prior to rendering. 51 50 * 52 * @since BuddyPress (2.0.0)51 * @since 2.0.0 53 52 */ 54 53 public function prepare_items() { … … 89 88 * Get the views (the links above the WP List Table). 90 89 * 91 * @since BuddyPress (2.0.0)90 * @since 2.0.0 92 91 * 93 92 * @uses WP_Users_List_Table::get_views() to get the users views … … 109 108 * As we're dealing with signups, we don't need this. 110 109 * 111 * @since BuddyPress (2.0.0)110 * @since 2.0.0 112 111 * 113 112 * @param array $which … … 120 119 * Specific signups columns. 121 120 * 122 * @since BuddyPress (2.0.0)121 * @since 2.0.0 123 122 */ 124 123 public function get_columns() { … … 127 126 * Filters the single site Members signup columns. 128 127 * 129 * @since BuddyPress (2.0.0)128 * @since 2.0.0 130 129 * 131 130 * @param array $value Array of columns to display. … … 145 144 * Specific bulk actions for signups. 146 145 * 147 * @since BuddyPress (2.0.0)146 * @since 2.0.0 148 147 */ 149 148 public function get_bulk_actions() { … … 165 164 * Nice job, clean sheet! 166 165 * 167 * @since BuddyPress (2.0.0)166 * @since 2.0.0 168 167 */ 169 168 public function no_items() { … … 189 188 * The columns signups can be reordered with. 190 189 * 191 * @since BuddyPress (2.0.0)190 * @since 2.0.0 192 191 */ 193 192 public function get_sortable_columns() { … … 202 201 * Display signups rows. 203 202 * 204 * @since BuddyPress (2.0.0)203 * @since 2.0.0 205 204 */ 206 205 public function display_rows() { … … 221 220 * Display a signup row. 222 221 * 223 * @since BuddyPress (2.0.0)222 * @since 2.0.0 224 223 * 225 224 * @see WP_List_Table::single_row() for explanation of params. … … 241 240 * Markup for the checkbox used to select items for bulk actions. 242 241 * 243 * @since BuddyPress (2.0.0)242 * @since 2.0.0 244 243 * 245 244 * @param object $signup_object The signup data object. … … 255 254 * The row actions (delete/activate/email). 256 255 * 257 * @since BuddyPress (2.0.0)256 * @since 2.0.0 258 257 * 259 258 * @param object $signup_object The signup data object. … … 306 305 * Filters the multisite row actions for each user in list. 307 306 * 308 * @since BuddyPress (2.0.0)307 * @since 2.0.0 309 308 * 310 309 * @param array $actions Array of actions and corresponding links. … … 319 318 * Display user name, if any. 320 319 * 321 * @since BuddyPress (2.0.0)320 * @since 2.0.0 322 321 * 323 322 * @param object $signup_object The signup data object. … … 330 329 * Display user email. 331 330 * 332 * @since BuddyPress (2.0.0)331 * @since 2.0.0 333 332 * 334 333 * @param object $signup_object The signup data object. … … 341 340 * Display registration date. 342 341 * 343 * @since BuddyPress (2.0.0)342 * @since 2.0.0 344 343 * 345 344 * @param object $signup_object The signup data object. … … 352 351 * Display the last time an activation email has been sent. 353 352 * 354 * @since BuddyPress (2.0.0)353 * @since 2.0.0 355 354 * 356 355 * @param object $signup_object The signup data object. … … 363 362 * Display number of time an activation email has been sent. 364 363 * 365 * @since BuddyPress (2.0.0)364 * @since 2.0.0 366 365 * 367 366 * @param object $signup_object Signup object instance. … … 376 375 * Allow plugins to add their custom column. 377 376 * 378 * @since BuddyPress (2.1.0)377 * @since 2.1.0 379 378 * 380 379 * @param object|null $signup_object The signup data object. … … 388 387 * Filters the single site custom columns for plugins. 389 388 * 390 * @since BuddyPress (2.1.0)389 * @since 2.1.0 391 390 * 392 391 * @param string $column_name The column name. … … 403 402 * List table class for signups network admin page. 404 403 * 405 * @since BuddyPress (2.0.0)404 * @since 2.0.0 406 405 */ 407 406 class BP_Members_MS_List_Table extends WP_MS_Users_List_Table { … … 410 409 * Signup counts. 411 410 * 412 * @since BuddyPress (2.0.0)411 * @since 2.0.0 413 412 * 414 413 * @access public … … 420 419 * Constructor 421 420 * 422 * @since BuddyPress (2.0.0)421 * @since 2.0.0 423 422 */ 424 423 public function __construct() { … … 437 436 * manipulation required prior to rendering. 438 437 * 439 * @since BuddyPress (2.0.0)438 * @since 2.0.0 440 439 */ 441 440 public function prepare_items() { … … 477 476 * Get the views : the links above the WP List Table. 478 477 * 479 * @since BuddyPress (2.0.0)478 * @since 2.0.0 480 479 * 481 480 * @uses WP_MS_Users_List_Table::get_views() to get the users views. … … 494 493 * Specific signups columns. 495 494 * 496 * @since BuddyPress (2.0.0)495 * @since 2.0.0 497 496 */ 498 497 public function get_columns() { … … 501 500 * Filters the multisite Members signup columns. 502 501 * 503 * @since BuddyPress (2.0.0)502 * @since 2.0.0 504 503 * 505 504 * @param array $value Array of columns to display. … … 519 518 * Specific bulk actions for signups. 520 519 * 521 * @since BuddyPress (2.0.0)520 * @since 2.0.0 522 521 */ 523 522 public function get_bulk_actions() { … … 539 538 * Nice job, clean sheet! 540 539 * 541 * @since BuddyPress (2.0.0)540 * @since 2.0.0 542 541 */ 543 542 public function no_items() { … … 558 557 * The columns signups can be reordered with. 559 558 * 560 * @since BuddyPress (2.0.0)559 * @since 2.0.0 561 560 */ 562 561 public function get_sortable_columns() { … … 571 570 * Display signups rows. 572 571 * 573 * @since BuddyPress (2.0.0)572 * @since 2.0.0 574 573 */ 575 574 public function display_rows() { … … 590 589 * Display a signup row. 591 590 * 592 * @since BuddyPress (2.0.0)591 * @since 2.0.0 593 592 * 594 593 * @see WP_List_Table::single_row() for explanation of params. … … 604 603 605 604 /** 606 * Prevents regular users row actions to be output 607 * 608 * @since BuddyPress (2.4.0)605 * Prevents regular users row actions to be output. 606 * 607 * @since 2.4.0 609 608 * @access protected 610 609 * … … 612 611 * @param string $column_name Current column name. 613 612 * @param string $primary Primary column name. 613 * 614 * @return string 614 615 */ 615 616 protected function handle_row_actions( $signup_object = null, $column_name = '', $primary = '' ) { … … 620 621 * Markup for the checkbox used to select items for bulk actions. 621 622 * 622 * @since BuddyPress (2.0.0)623 * @since 2.0.0 623 624 * 624 625 * @param object|null $signup_object The signup data object. … … 634 635 * The row actions (delete/activate/email). 635 636 * 636 * @since BuddyPress (2.0.0)637 * @since 2.0.0 637 638 * 638 639 * @param object $signup_object The signup data object. … … 691 692 * Display user name, if any. 692 693 * 693 * @since BuddyPress (2.0.0)694 * @since 2.0.0 694 695 * 695 696 * @param object $signup_object The signup data object. … … 702 703 * Display user email. 703 704 * 704 * @since BuddyPress (2.0.0)705 * @since 2.0.0 705 706 * 706 707 * @param object $signup_object The signup data object. … … 713 714 * Display registration date. 714 715 * 715 * @since BuddyPress (2.0.0)716 * @since 2.0.0 716 717 * 717 718 * @param object $signup_object The signup data object. … … 732 733 * Display the last time an activation email has been sent. 733 734 * 734 * @since BuddyPress (2.0.0)735 * @since 2.0.0 735 736 * 736 737 * @param object|null $signup_object Signup object instance. … … 751 752 * Display number of time an activation email has been sent. 752 753 * 753 * @since BuddyPress (2.0.0)754 * @since 2.0.0 754 755 * 755 756 * @param object|null $signup_object Signup object instance. … … 774 775 * Filters the multisite custom columns for plugins. 775 776 * 776 * @since BuddyPress (2.1.0)777 * @since 2.1.0 777 778 * 778 779 * @param string $column_name The column name. -
trunk/src/bp-members/admin/js/admin.js
r9819 r10149 30 30 * 31 31 * @param {String} container HTML ID of the field 32 * @since BuddyPress (1.0.0)32 * @since 1.0.0 33 33 */ 34 34 function clear( container ) { -
trunk/src/bp-members/bp-members-actions.php
r9877 r10149 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Members Actions … … 12 11 */ 13 12 14 // Exit if accessed directly 13 // Exit if accessed directly. 15 14 defined( 'ABSPATH' ) || exit; 16 15 … … 64 63 } 65 64 } 66 // Unhooked in BuddyPress (1.6.0)- moved to settings65 // Unhooked in 1.6.0 - moved to settings 67 66 //add_action( 'bp_actions', 'bp_core_action_set_spammer_status' ); 68 67 … … 100 99 } 101 100 } 102 // Unhooked in BuddyPress (1.6.0)- moved to settings101 // Unhooked in 1.6.0 - moved to settings 103 102 //add_action( 'bp_actions', 'bp_core_action_delete_user' ); 104 103 … … 106 105 * Redirect to a random member page when visiting a ?random-member URL. 107 106 * 108 * @since BuddyPress (1.0.0)107 * @since 1.0.0 109 108 */ 110 109 function bp_core_get_random_member() { -
trunk/src/bp-members/bp-members-activity.php
r9877 r10149 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Member Activity … … 8 7 */ 9 8 10 // Exit if accessed directly 9 // Exit if accessed directly. 11 10 defined( 'ABSPATH' ) || exit; 12 11 … … 14 13 * Register the 'new member' activity type. 15 14 * 16 * @since BuddyPress (2.2.0)15 * @since 2.2.0 17 16 * 18 17 * @uses bp_activity_set_action() … … 33 32 * Fires after the default 'new member' activity types are registered. 34 33 * 35 * @since BuddyPress (2.2.0)34 * @since 2.2.0 36 35 */ 37 36 do_action( 'bp_members_register_activity_actions' ); … … 42 41 * Format 'new_member' activity actions. 43 42 * 44 * @since BuddyPress (2.2.0)43 * @since 2.2.0 45 44 * 46 45 * @param string $action Static activity action. … … 61 60 * Filters the formatted 'new member' activity actions. 62 61 * 63 * @since BuddyPress (2.2.0)62 * @since 2.2.0 64 63 * 65 64 * @param string $action Static activity action. -
trunk/src/bp-members/bp-members-admin.php
r10127 r10149 1 1 <?php 2 3 // Exit if accessed directly 2 /** 3 * BuddyPress Members Admin 4 * 5 * @package BuddyPress 6 * @subpackage MembersAdmin 7 */ 8 9 // Exit if accessed directly. 4 10 defined( 'ABSPATH' ) || exit; 5 11 6 12 if ( !class_exists( 'BP_Members_Admin' ) ) : 13 7 14 /** 8 15 * Load Members admin area. … … 11 18 * @subpackage membersAdministration 12 19 * 13 * @since BuddyPress (2.0.0)20 * @since 2.0.0 14 21 */ 15 22 class BP_Members_Admin { … … 61 68 * 62 69 * @access public 63 * @since BuddyPress (2.0.0)70 * @since 2.0.0 64 71 * 65 72 * @uses buddypress() to get BuddyPress main instance. … … 83 90 * 84 91 * @access public 85 * @since BuddyPress (2.0.0)92 * @since 2.0.0 86 93 */ 87 94 public function __construct() { … … 94 101 * 95 102 * @access private 96 * @since BuddyPress (2.0.0)103 * @since 2.0.0 97 104 */ 98 105 private function setup_globals() { … … 153 160 * 154 161 * @access private 155 * @since BuddyPress (2.0.0)162 * @since 2.0.0 156 163 */ 157 164 private function setup_actions() { … … 213 220 * current user's ID so they aren't left without a user to edit. 214 221 * 215 * @since BuddyPress (2.1.0)222 * @since 2.1.0 216 223 * 217 224 * @return int … … 240 247 * 241 248 * @access public 242 * @since BuddyPress (2.1.0)249 * @since 2.1.0 243 250 * 244 251 * @param int $user_id ID of the user being checked for edit ability. … … 269 276 * Get admin notice when saving a user or member profile. 270 277 * 271 * @since BuddyPress (2.1.0)278 * @since 2.1.0 272 279 * 273 280 * @return array … … 357 364 * 358 365 * @access public 359 * @since BuddyPress (2.1.0)366 * @since 2.1.0 360 367 * 361 368 * @uses add_submenu_page() To add the Edit Profile page in Profile section. … … 396 403 * 397 404 * @access public 398 * @since BuddyPress (2.0.0)405 * @since 2.0.0 399 406 * 400 407 * @uses add_submenu_page() To add the Edit Profile page in Users/Profile section. … … 471 478 * 472 479 * @access public 473 * @since BuddyPress (2.1.0)480 * @since 2.1.0 474 481 */ 475 482 public function profile_admin_head() { … … 531 538 * 532 539 * @access public 533 * @since BuddyPress (2.0.0)540 * @since 2.0.0 534 541 */ 535 542 public function admin_head() { … … 544 551 * 545 552 * @access public 546 * @since BuddyPress (2.0.0)553 * @since 2.0.0 547 554 */ 548 555 public function enqueue_scripts() { … … 557 564 * Filters the CSS URL to enqueue in the Members admin area. 558 565 * 559 * @since BuddyPress (2.0.0)566 * @since 2.0.0 560 567 * 561 568 * @param string $css URL to the CSS admin file to load. … … 577 584 * Filters the JS URL to enqueue in the Members admin area. 578 585 * 579 * @since BuddyPress (2.0.0)586 * @since 2.0.0 580 587 * 581 588 * @param string $js URL to the JavaScript admin file to load. … … 588 595 * Fires after all of the members JavaScript and CSS are enqueued. 589 596 * 590 * @since BuddyPress (2.0.0)597 * @since 2.0.0 591 598 * 592 599 * @param string $id ID of the current screen. … … 600 607 * 601 608 * @access public 602 * @since BuddyPress (2.0.0)609 * @since 2.0.0 603 610 * 604 611 * @param object|null $user User to create profile navigation for. … … 664 671 * 665 672 * @access public 666 * @since BuddyPress (2.0.0)673 * @since 2.0.0 667 674 */ 668 675 public function user_admin_load() { … … 691 698 * Fires at the start of the signups admin load. 692 699 * 693 * @since BuddyPress (2.0.0)700 * @since 2.0.0 694 701 * 695 702 * @param string $doaction Current bulk action being processed. … … 701 708 * Filters the allowed actions for use in the user admin page. 702 709 * 703 * @since BuddyPress (2.0.0)710 * @since 2.0.0 704 711 * 705 712 * @param array $value Array of allowed actions to use. … … 746 753 * Plugins should not use this hook, please use 'bp_members_admin_user_metaboxes' instead. 747 754 * 748 * @since BuddyPress (2.0.0)755 * @since 2.0.0 749 756 * 750 757 * @param int $user_id Current user ID for the screen. … … 792 799 * by setting it to true. 793 800 * 794 * @since BuddyPress (2.0.0)801 * @since 2.0.0 795 802 * 796 803 * @param bool $is_self_profile Whether or not it is the current user's profile. … … 823 830 * Fires at end of user profile admin load if doaction does not match any available actions. 824 831 * 825 * @since BuddyPress (2.0.0)832 * @since 2.0.0 826 833 * 827 834 * @param string $doaction Current bulk action being processed. … … 840 847 * 841 848 * @access public 842 * @since BuddyPress (2.0.0)849 * @since 2.0.0 843 850 */ 844 851 public function user_admin() { … … 950 957 * 951 958 * @access public 952 * @since BuddyPress (2.0.0)959 * @since 2.0.0 953 960 * 954 961 * @param WP_User $user The WP_User object to be edited. … … 1027 1034 * 1028 1035 * @access public 1029 * @since BuddyPress (2.0.0)1036 * @since 2.0.0 1030 1037 * 1031 1038 * @param WP_User $user The WP_User object to be edited. … … 1041 1048 * 1042 1049 * @access public 1043 * @since BuddyPress (2.0.0)1050 * @since 2.0.0 1044 1051 * 1045 1052 * @param WP_User $user The WP_User object to be edited. … … 1074 1081 * Fires in the user stats metabox if the user has activated their account. 1075 1082 * 1076 * @since BuddyPress (2.0.0)1083 * @since 2.0.0 1077 1084 * 1078 1085 * @param array $value Array holding the user ID. … … 1090 1097 * Render the Member Type metabox. 1091 1098 * 1092 * @since BuddyPress (2.2.0)1099 * @since 2.2.0 1093 1100 * @access public 1094 1101 * … … 1121 1128 * Process changes from the Member Type metabox. 1122 1129 * 1123 * @since BuddyPress (2.2.0)1130 * @since 2.2.0 1124 1131 * @access public 1125 1132 */ … … 1157 1164 * 1158 1165 * @access public 1159 * @since BuddyPress (2.0.0)1166 * @since 2.0.0 1160 1167 * 1161 1168 * @param array|string $actions WordPress row actions (edit, delete). … … 1217 1224 * 1218 1225 * @access public 1219 * @since BuddyPress (2.1.0)1226 * @since 2.1.0 1220 1227 */ 1221 1228 public function add_edit_profile_url_filter() { … … 1227 1234 * 1228 1235 * @access public 1229 * @since BuddyPress (2.1.0)1236 * @since 2.1.0 1230 1237 * 1231 1238 * @uses user_admin_url() … … 1248 1255 * 1249 1256 * @access public 1250 * @since BuddyPress (2.1.0)1257 * @since 2.1.0 1251 1258 */ 1252 1259 public function remove_edit_profile_url_filter() { … … 1260 1267 * 1261 1268 * @access public 1262 * @since BuddyPress (2.0.0)1269 * @since 2.0.0 1263 1270 * 1264 1271 * @param int $value … … 1288 1295 * before the 2.0.0 upgrade. 1289 1296 * 1290 * @since BuddyPress (2.0.0)1297 * @since 2.0.0 1291 1298 * 1292 1299 * @param WP_User_Query $query The users query. … … 1331 1338 * Filter the WP Users List Table views to include 'bp-signups'. 1332 1339 * 1333 * @since BuddyPress (2.0.0)1340 * @since 2.0.0 1334 1341 * 1335 1342 * @param array $views WP List Table views. … … 1359 1366 * Load the Signup WP Users List table. 1360 1367 * 1361 * @since BuddyPress (2.0.0)1368 * @since 2.0.0 1362 1369 * 1363 1370 * @param string $class The name of the class to use. … … 1386 1393 * help, and setting up screen options. 1387 1394 * 1388 * @since BuddyPress (2.0.0)1395 * @since 2.0.0 1389 1396 * 1390 1397 * @global $bp_members_signup_list_table … … 1400 1407 * Fires at the start of the signups admin load. 1401 1408 * 1402 * @since BuddyPress (2.0.0)1409 * @since 2.0.0 1403 1410 * 1404 1411 * @param string $doaction Current bulk action being processed. … … 1410 1417 * Filters the allowed actions for use in the user signups admin page. 1411 1418 * 1412 * @since BuddyPress (2.0.0)1419 * @since 2.0.0 1413 1420 * 1414 1421 * @param array $value Array of allowed actions to use. … … 1547 1554 * Fires at end of signups admin load if doaction does not match any actions. 1548 1555 * 1549 * @since BuddyPress (2.0.0)1556 * @since 2.0.0 1550 1557 * 1551 1558 * @param string $doaction Current bulk action being processed. … … 1563 1570 * Display any activation errors. 1564 1571 * 1565 * @since BuddyPress (2.0.0)1572 * @since 2.0.0 1566 1573 */ 1567 1574 public function signups_display_errors() { … … 1589 1596 * Get admin notice when viewing the sign-up page. 1590 1597 * 1591 * @since BuddyPress (2.1.0)1598 * @since 2.1.0 1592 1599 * 1593 1600 * @return array … … 1745 1752 * Also prepare the admin notices. 1746 1753 * 1747 * @since BuddyPress (2.0.0)1754 * @since 2.0.0 1748 1755 */ 1749 1756 public function signups_admin() { … … 1795 1802 * This is the list of the Pending accounts (signups). 1796 1803 * 1797 * @since BuddyPress (2.0.0)1804 * @since 2.0.0 1798 1805 * 1799 1806 * @global $plugin_page … … 1879 1886 * This is the confirmation screen for actions. 1880 1887 * 1881 * @since BuddyPress (2.0.0)1888 * @since 2.0.0 1882 1889 * 1883 1890 * @param string $action Delete, activate, or resend activation link. -
trunk/src/bp-members/bp-members-adminbar.php
r9877 r10149 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Members Toolbar. … … 10 9 */ 11 10 12 // Exit if accessed directly 11 // Exit if accessed directly. 13 12 defined( 'ABSPATH' ) || exit; 14 13 … … 16 15 * Add the "My Account" menu and all submenus. 17 16 * 18 * @since BuddyPress (1.6.0)17 * @since 1.6.0 19 18 * 20 19 * @todo Deprecate WP 3.2 Toolbar compatibility when we drop 3.2 support … … 72 71 * Add the User Admin top-level menu to user pages. 73 72 * 74 * @since BuddyPress (1.5.0)73 * @since 1.5.0 75 74 */ 76 75 function bp_members_admin_bar_user_admin_menu() { … … 143 142 * Build the "Notifications" dropdown. 144 143 * 145 * @since BuddyPress (1.5.0)144 * @since 1.5.0 146 145 */ 147 146 function bp_members_admin_bar_notifications_menu() { … … 159 158 * Remove rogue WP core Edit menu when viewing a single user. 160 159 * 161 * @since BuddyPress (1.6.0)160 * @since 1.6.0 162 161 */ 163 162 function bp_members_remove_edit_page_menu() { -
trunk/src/bp-members/bp-members-cache.php
r9819 r10149 1 1 <?php 2 3 2 /** 4 3 * Caching functions specific to BuddyPress Members. 5 4 * 6 * @since BuddyPress (2.2.0) 5 * @since 2.2.0 6 * 7 * @package BuddyPress 8 * @subpackage MembersCache 7 9 */ 10 11 // Exit if accessed directly. 12 defined( 'ABSPATH' ) || exit; 8 13 9 14 /** 10 15 * Pre-fetch member type data when initializing a Members loop. 11 16 * 12 * @since BuddyPress (2.2.0)17 * @since 2.2.0 13 18 * 14 19 * @param BP_User_Query $bp_user_query BP_User_Query object. -
trunk/src/bp-members/bp-members-classes.php
r9877 r10149 7 7 */ 8 8 9 // Exit if accessed directly 9 // Exit if accessed directly. 10 10 defined( 'ABSPATH' ) || exit; 11 11 -
trunk/src/bp-members/bp-members-filters.php
r9936 r10149 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Members Filters. … … 10 9 */ 11 10 12 // Exit if accessed directly 11 // Exit if accessed directly. 13 12 defined( 'ABSPATH' ) || exit; 14 13 … … 30 29 * safety of your network. 31 30 * 32 * @since BuddyPress (1.5.0)31 * @since 1.5.0 33 32 */ 34 33 function bp_members_signup_sanitization() { … … 65 64 * is not the same than the blog slug for this particular config. 66 65 * 67 * @since BuddyPress (2.1.0)66 * @since 2.1.0 68 67 * 69 68 * @param array $illegal_names … … 99 98 * Filter the user profile URL to point to BuddyPress profile edit. 100 99 * 101 * @since BuddyPress (1.6.0)100 * @since 1.6.0 102 101 * 103 102 * @param string $url WP profile edit URL. … … 121 120 * Filters the user profile URL to point to BuddyPress profile edit. 122 121 * 123 * @since BuddyPress (1.5.2)122 * @since 1.5.2 124 123 * 125 124 * @param string $url WP profile edit URL. -
trunk/src/bp-members/bp-members-functions.php
r10022 r10149 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Member Functions. … … 10 9 */ 11 10 12 // Exit if accessed directly 11 // Exit if accessed directly. 13 12 defined( 'ABSPATH' ) || exit; 14 13 … … 16 15 * Check for the existence of a Members directory page. 17 16 * 18 * @since BuddyPress (1.5.0)17 * @since 1.5.0 19 18 * 20 19 * @return bool True if found, otherwise false. … … 148 147 * Filters the results of the user query. 149 148 * 150 * @since BuddyPress (1.2.0)149 * @since 1.2.0 151 150 * 152 151 * @param array $retval Array of users for the current query. … … 187 186 * Filters the domain for the passed user. 188 187 * 189 * @since BuddyPress (1.0.1)188 * @since 1.0.1 190 189 * 191 190 * @param string $domain Domain for the passed user. … … 217 216 * Filters the userdata for a passed user. 218 217 * 219 * @since BuddyPress (1.2.0)218 * @since 1.2.0 220 219 * 221 220 * @param array $userdata Array of user data for a passed user. … … 242 241 * Return the user ID based on a user's user_login. 243 242 * 244 * @since BuddyPress (1.0.0)243 * @since 1.0.0 245 244 * 246 245 * @param string $username user_login to check. … … 258 257 * Filters the ID of a user, based on user_login. 259 258 * 260 * @since BuddyPress (1.0.1)259 * @since 1.0.1 261 260 * 262 261 * @param int|null $value ID of the user or null. … … 269 268 * Return the user ID based on a user's user_nicename. 270 269 * 271 * @since BuddyPress (1.2.3)270 * @since 1.2.3 272 271 * 273 272 * @param string $user_nicename user_nicename to check. … … 285 284 * Filters the user ID based on user_nicename. 286 285 * 287 * @since BuddyPress (1.2.3)286 * @since 1.2.3 288 287 * 289 288 * @param int|null $value ID of the user or null. … … 368 367 * Filters the username based on originally provided user ID. 369 368 * 370 * @since BuddyPress (1.0.1)369 * @since 1.0.1 371 370 * 372 371 * @param string $username Username determined by user ID. … … 381 380 * sanitized and unique slug to a user is needed. 382 381 * 383 * @since BuddyPress (1.5.0)382 * @since 1.5.0 384 383 * 385 384 * @todo Refactor to use a WP core function, if possible. … … 433 432 * Filters the user_nicename based on originally provided user ID. 434 433 * 435 * @since BuddyPress (1.5.0)434 * @since 1.5.0 436 435 * 437 436 * @param string $username User nice name determined by user ID. … … 468 467 * Filters the user email for user based on user ID. 469 468 * 470 * @since BuddyPress (1.0.1)469 * @since 1.0.1 471 470 * 472 471 * @param string $email Email determined for the user. … … 513 512 * Filters the link text for the passed in user. 514 513 * 515 * @since BuddyPress (1.2.0)514 * @since 1.2.0 516 515 * 517 516 * @param string $value Link text based on passed parameters. … … 527 526 * display_name, and then user_nicename. 528 527 * 529 * @since BuddyPress (2.0.0)528 * @since 2.0.0 530 529 * 531 530 * @param array $user_ids … … 640 639 * Filters the display name for the passed in user. 641 640 * 642 * @since BuddyPress (1.0.1)641 * @since 1.0.1 643 642 * 644 643 * @param string $fullname Display name for the user. … … 665 664 * Filters the user link for the user based on user email address. 666 665 * 667 * @since BuddyPress (1.0.1)666 * @since 1.0.1 668 667 * 669 668 * @param string|bool $value URL for the user if found, otherwise false. … … 691 690 * Filters the user link for the user based on username. 692 691 * 693 * @since BuddyPress (1.0.1)692 * @since 1.0.1 694 693 * 695 694 * @param string|bool $value URL for the user if found, otherwise false. … … 721 720 * Filters the total number of members for the installation. 722 721 * 723 * @since BuddyPress (1.2.0)722 * @since 1.2.0 724 723 * 725 724 * @param int $count Total number of members. … … 757 756 * Filters the total number of members for the installation limited to those with last_activity. 758 757 * 759 * @since BuddyPress (1.6.0)758 * @since 1.6.0 760 759 * 761 760 * @param int $count Total number of active members. … … 773 772 * - bp_core_mark_user_ham_admin() (from wp-admin) 774 773 * 775 * @since BuddyPress (1.6.0)774 * @since 1.6.0 776 775 * 777 776 * @param int $user_id The ID of the user being spammed/hammed. … … 845 844 * Fires at end of processing spammer in Dashboard if not multisite and user is spam. 846 845 * 847 * @since BuddyPress (1.5.0)846 * @since 1.5.0 848 847 * 849 848 * @param int $value user ID. … … 855 854 * Fires at end of processing spammer in Dashboard if not multisite and user is not spam. 856 855 * 857 * @since BuddyPress (1.5.0)856 * @since 1.5.0 858 857 * 859 858 * @param int $value user ID. … … 874 873 * Fires at the end of the process spammer process if the user is spam. 875 874 * 876 * @since BuddyPress (1.5.0)875 * @since 1.5.0 877 876 * 878 877 * @param int $value Displayed user ID. … … 884 883 * Fires at the end of the process spammer process if the user is not spam. 885 884 * 886 * @since BuddyPress (1.5.0)885 * @since 1.5.0 887 886 * 888 887 * @param int $value Displayed user ID. … … 894 893 * Fires at the end of the process for hanlding spammer status. 895 894 * 896 * @since BuddyPress (1.5.5)895 * @since 1.5.5 897 896 * 898 897 * @param int $user_id ID of the processed user. … … 910 909 * Hook to WP's make_spam_user and run our custom BP spam functions. 911 910 * 912 * @since BuddyPress (1.6.0)911 * @since 1.6.0 913 912 * 914 913 * @param int $user_id The user ID passed from the make_spam_user hook. … … 922 921 * Hook to WP's make_ham_user and run our custom BP spam functions. 923 922 * 924 * @since BuddyPress (1.6.0)923 * @since 1.6.0 925 924 * 926 925 * @param int $user_id The user ID passed from the make_ham_user hook. … … 989 988 * Filters whether a user is marked as a spammer. 990 989 * 991 * @since BuddyPress (1.6.0)990 * @since 1.6.0 992 991 * 993 992 * @param bool $is_spammer Whether or not user is marked as spammer. … … 1054 1053 * Filters whether a user is marked as deleted. 1055 1054 * 1056 * @since BuddyPress (1.6.0)1055 * @since 1.6.0 1057 1056 * 1058 1057 * @param bool $is_deleted Whether or not user is marked as deleted. … … 1064 1063 * Check whether a user is "active", ie neither deleted nor spammer. 1065 1064 * 1066 * @since BuddyPress (1.6.0)1065 * @since 1.6.0 1067 1066 * 1068 1067 * @uses is_user_logged_in() To check if user is logged in … … 1104 1103 * Check whether user is not active. 1105 1104 * 1106 * @since BuddyPress (1.6.0)1105 * @since 1.6.0 1107 1106 * 1108 1107 * @todo No need for the user fallback checks, since they're done in … … 1136 1135 * Update a user's last activity. 1137 1136 * 1138 * @since BuddyPress (1.9.0)1137 * @since 1.9.0 1139 1138 * 1140 1139 * @param int $user_id ID of the user being updated. … … 1180 1179 * the data from the proper location. 1181 1180 * 1182 * @since BuddyPress (2.0.0)1181 * @since 2.0.0 1183 1182 * 1184 1183 * @access private For internal use only. … … 1215 1214 * the data in the proper location. 1216 1215 * 1217 * @since BuddyPress (2.0.0)1216 * @since 2.0.0 1218 1217 * 1219 1218 * @access private For internal use only. … … 1251 1250 * Filters the last activity for a given user. 1252 1251 * 1253 * @since BuddyPress (1.9.0)1252 * @since 1.9.0 1254 1253 * 1255 1254 * @param string $activity Time of last activity, in 'Y-m-d H:i:s' format or … … 1266 1265 * be called directly from the BuddyPress Tools panel. 1267 1266 * 1268 * @since BuddyPress (2.0.0)1267 * @since 2.0.0 1269 1268 */ 1270 1269 function bp_last_activity_migrate() { … … 1347 1346 * Fires before the processing of an account deletion. 1348 1347 * 1349 * @since BuddyPress (1.6.0)1348 * @since 1.6.0 1350 1349 * 1351 1350 * @param int $user_id ID of the user account being deleted. … … 1369 1368 * Fires after the deletion of an account. 1370 1369 * 1371 * @since BuddyPress (1.6.0)1370 * @since 1.6.0 1372 1371 * 1373 1372 * @param int $user_id ID of the user account that was deleted. … … 1381 1380 * Delete a user's avatar when the user is deleted. 1382 1381 * 1383 * @since BuddyPress (1.9.0)1382 * @since 1.9.0 1384 1383 * 1385 1384 * @param int $user_id ID of the user who is about to be deleted. … … 1420 1419 * then simply redirect them to the home page and stop them from logging in. 1421 1420 * 1422 * @since BuddyPress (1.1.2)1421 * @since 1.1.2 1423 1422 * 1424 1423 * @param WP_User|WP_Error $user Either the WP_User object or the WP_Error … … 1556 1555 * Filters the array of default illegal usernames. 1557 1556 * 1558 * @since BuddyPress (1.2.2)1557 * @since 1.2.2 1559 1558 * 1560 1559 * @param array $value Merged and unique array of illegal usernames. … … 1571 1570 * Filters the array of default illegal names. 1572 1571 * 1573 * @since BuddyPress (1.2.5)1572 * @since 1.2.5 1574 1573 * 1575 1574 * @param array $value Merged and unique array of illegal names. … … 1588 1587 * - If there's an email domain whitelest, is the current domain on it? 1589 1588 * 1590 * @since BuddyPress (1.6.2)1589 * @since 1.6.2 1591 1590 * 1592 1591 * @param string $user_email The email being checked. … … 1638 1637 * parses, adding the appropriate error messages to the WP_Error object. 1639 1638 * 1640 * @since BuddyPress (1.7.0)1639 * @since 1.7.0 1641 1640 * 1642 1641 * @see bp_core_validate_email_address() … … 1691 1690 * Filters the username before being validated. 1692 1691 * 1693 * @since BuddyPress (1.5.5)1692 * @since 1.5.5 1694 1693 * 1695 1694 * @param string $user_name Username to validate. … … 1761 1760 * Filters the result of the user signup validation. 1762 1761 * 1763 * @since BuddyPress (1.2.2)1762 * @since 1.2.2 1764 1763 * 1765 1764 * @param array $result Results of user validation including errors, if any. … … 1786 1785 * Filters the validated blog url and title provided at signup. 1787 1786 * 1788 * @since BuddyPress (1.2.2)1787 * @since 1.2.2 1789 1788 * 1790 1789 * @param array $value Array with the new site data and error messages. … … 1858 1857 * Filters if BuddyPress should send an activation key for a new signup. 1859 1858 * 1860 * @since BuddyPress (1.2.3)1859 * @since 1.2.3 1861 1860 * 1862 1861 * @param bool $value Whether or not to send the activation key. … … 1877 1876 * Fires at the end of the process to sign up a user. 1878 1877 * 1879 * @since BuddyPress (1.2.2)1878 * @since 1.2.2 1880 1879 * 1881 1880 * @param bool|WP_Error $user_id True on success, WP_Error on failure. … … 1914 1913 * backwards compatibility. 1915 1914 * 1916 * @since BuddyPress (1.2.2)1915 * @since 1.2.2 1917 1916 * 1918 1917 * @param void $value … … 2024 2023 * Fires if the user has already been created. 2025 2024 * 2026 * @since BuddyPress (1.2.2)2025 * @since 1.2.2 2027 2026 * 2028 2027 * @param int $user_id ID of the user being checked. … … 2068 2067 * Fires at the end of the user activation process. 2069 2068 * 2070 * @since BuddyPress (1.2.2)2069 * @since 1.2.2 2071 2070 * 2072 2071 * @param int $user_id ID of the user being checked. … … 2082 2081 * Migrate signups from pre-2.0 configuration to wp_signups. 2083 2082 * 2084 * @since BuddyPress (2.0.1)2083 * @since 2.0.1 2085 2084 */ 2086 2085 function bp_members_migrate_signups() { … … 2214 2213 * Filters the avatar storage directory for use during registration. 2215 2214 * 2216 * @since BuddyPress (1.1.1)2215 * @since 1.1.1 2217 2216 * 2218 2217 * @param array $value Array of path and URL values for created storage directory. … … 2245 2244 * Filters the user email that the validation email will be sent to. 2246 2245 * 2247 * @since BuddyPress (1.5.0)2246 * @since 1.5.0 2248 2247 * 2249 2248 * @param string $user_email User email the notification is being sent to. … … 2255 2254 * Filters the validation email subject that will be sent to user. 2256 2255 * 2257 * @since BuddyPress (1.5.0)2256 * @since 1.5.0 2258 2257 * 2259 2258 * @param string $subject Email validation subject text. … … 2265 2264 * Filters the validation email message that will be sent to user. 2266 2265 * 2267 * @since BuddyPress (1.5.0)2266 * @since 1.5.0 2268 2267 * 2269 2268 * @param string $message Email validation message text. … … 2278 2277 * Fires after the sending of activation email to a newly registered user. 2279 2278 * 2280 * @since BuddyPress (1.5.0)2279 * @since 1.5.0 2281 2280 * 2282 2281 * @param string $subject Subject for the sent email. … … 2292 2291 * Display a "resend email" link when an unregistered user attempts to log in. 2293 2292 * 2294 * @since BuddyPress (1.2.2)2293 * @since 1.2.2 2295 2294 * 2296 2295 * @param WP_User|WP_Error $user Either the WP_User or the WP_Error object. … … 2353 2352 * On the login screen, resends the activation email for a user. 2354 2353 * 2355 * @since BuddyPress (2.0.0)2354 * @since 2.0.0 2356 2355 * 2357 2356 * @see bp_core_signup_disable_inactive() … … 2424 2423 * This is important as the $bp->loggedin_user object is setup at priority 4. 2425 2424 * 2426 * @since BuddyPress (1.8.0)2425 * @since 1.8.0 2427 2426 */ 2428 2427 function bp_stop_live_spammer() { … … 2458 2457 * Filters the url used for redirection for a logged in user marked as spam. 2459 2458 * 2460 * @since BuddyPress (1.8.0)2459 * @since 1.8.0 2461 2460 * 2462 2461 * @param string $value URL to redirect user to. … … 2474 2473 * Show a custom error message when a logged-in user is marked as a spammer. 2475 2474 * 2476 * @since BuddyPress (1.8.0)2475 * @since 1.8.0 2477 2476 */ 2478 2477 function bp_live_spammer_login_error() { … … 2491 2490 * Register a member type. 2492 2491 * 2493 * @since BuddyPress (2.2.0)2492 * @since 2.2.0 2494 2493 * 2495 2494 * @param string $member_type Unique string identifier for the member type. … … 2531 2530 * - '_none' is used internally to denote an item that should not apply to any member types. 2532 2531 * 2533 * @since BuddyPress (2.4.0)2532 * @since 2.4.0 2534 2533 * 2535 2534 * @param array $illegal_names Array of illegal names. … … 2572 2571 * Fires after a member type is registered. 2573 2572 * 2574 * @since BuddyPress (2.2.0)2573 * @since 2.2.0 2575 2574 * 2576 2575 * @param string $member_type Member type identifier. … … 2585 2584 * Retrieve a member type object by name. 2586 2585 * 2587 * @since BuddyPress (2.2.0)2586 * @since 2.2.0 2588 2587 * 2589 2588 * @param string $member_type The name of the member type. … … 2604 2603 * Get a list of all registered member type objects. 2605 2604 * 2606 * @since BuddyPress (2.2.0)2605 * @since 2.2.0 2607 2606 * 2608 2607 * @see bp_register_member_type() for accepted arguments. … … 2629 2628 * filtering functions have access to the entire member type objects. 2630 2629 * 2631 * @since BuddyPress (2.2.0)2630 * @since 2.2.0 2632 2631 * 2633 2632 * @param array $types Member type objects, keyed by name. … … 2647 2646 * Set type for a member. 2648 2647 * 2649 * @since BuddyPress (2.2.0)2648 * @since 2.2.0 2650 2649 * 2651 2650 * @param int $user_id ID of the user. … … 2670 2669 * Fires just after a user's member type has been changed. 2671 2670 * 2672 * @since BuddyPress (2.2.0)2671 * @since 2.2.0 2673 2672 * 2674 2673 * @param int $user_id ID of the user whose member type has been updated. … … 2685 2684 * Remove type for a member. 2686 2685 * 2687 * @since BuddyPress (2.3.0)2686 * @since 2.3.0 2688 2687 * 2689 2688 * @param int $user_id ID of the user. … … 2707 2706 * Fires just after a user's member type has been removed. 2708 2707 * 2709 * @since BuddyPress (2.3.0)2708 * @since 2.3.0 2710 2709 * 2711 2710 * @param int $user_id ID of the user whose member type has been updated. … … 2721 2720 * Get type for a member. 2722 2721 * 2723 * @since BuddyPress (2.2.0)2722 * @since 2.2.0 2724 2723 * 2725 2724 * @param int $user_id ID of the user. … … 2754 2753 * Filters a user's member type(s). 2755 2754 * 2756 * @since BuddyPress (2.2.0)2755 * @since 2.2.0 2757 2756 * 2758 2757 * @param string $type Member type. … … 2766 2765 * Check whether the given user has a certain member type. 2767 2766 * 2768 * @since BuddyPress (2.3.0)2767 * @since 2.3.0 2769 2768 * 2770 2769 * @param int $user_id $user_id ID of the user. … … 2792 2791 * Delete a user's member type when the user when the user is deleted. 2793 2792 * 2794 * @since BuddyPress (2.2.0)2793 * @since 2.2.0 2795 2794 * 2796 2795 * @param int $user_id ID of the user. … … 2807 2806 * Get the "current" member type, if one is provided, in member directories. 2808 2807 * 2809 * @since BuddyPress (2.3.0)2808 * @since 2.3.0 2810 2809 * 2811 2810 * @return string -
trunk/src/bp-members/bp-members-loader.php
r10110 r10149 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Member Loader. … … 8 7 */ 9 8 10 // Exit if accessed directly 9 // Exit if accessed directly. 11 10 defined( 'ABSPATH' ) || exit; 12 11 … … 19 18 * 20 19 * @access public 21 * @since BuddyPress (2.2.0)20 * @since 2.2.0 22 21 * @var array 23 22 */ … … 27 26 * Start the members component creation process. 28 27 * 29 * @since BuddyPress (1.5.0)28 * @since 1.5.0 30 29 */ 31 30 public function __construct() { … … 81 80 * backwards compatibility. 82 81 * 83 * @since BuddyPress (1.5.0)82 * @since 1.5.0 84 83 * 85 84 * @see BP_Component::setup_globals() for description of parameters. … … 153 152 * Set up canonical stack for this component. 154 153 * 155 * @since BuddyPress (2.1.0)154 * @since 2.1.0 156 155 */ 157 156 public function setup_canonical_stack() { … … 211 210 * Set up fall-back component navigation if XProfile is inactive. 212 211 * 213 * @since BuddyPress (1.5.0)212 * @since 1.5.0 214 213 * 215 214 * @see BP_Component::setup_nav() for a description of arguments. … … 290 289 * Setup cache groups. 291 290 * 292 * @since BuddyPress (2.2.0)291 * @since 2.2.0 293 292 */ 294 293 public function setup_cache_groups() { -
trunk/src/bp-members/bp-members-screens.php
r9877 r10149 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Member Screens. … … 10 9 */ 11 10 12 // Exit if accessed directly 11 // Exit if accessed directly. 13 12 defined( 'ABSPATH' ) || exit; 14 13 … … 21 20 * Fires right before the loading of the Member profile screen template file. 22 21 * 23 * @since BuddyPress (1.5.0)22 * @since 1.5.0 24 23 */ 25 24 do_action( 'bp_members_screen_display_profile' ); … … 28 27 * Filters the template to load for the Member profile page screen. 29 28 * 30 * @since BuddyPress (1.5.0)29 * @since 1.5.0 31 30 * 32 31 * @param string $template Path to the Member template to load. … … 45 44 * Fires right before the loading of the Member directory index screen template file. 46 45 * 47 * @since BuddyPress (1.5.0)46 * @since 1.5.0 48 47 */ 49 48 do_action( 'bp_members_screen_index' ); … … 52 51 * Filters the template to load for the Member directory page screen. 53 52 * 54 * @since BuddyPress (1.5.0)53 * @since 1.5.0 55 54 * 56 55 * @param string $value Path to the member directory template to load. … … 83 82 * Filters the URL to redirect logged in users to when visiting registration page. 84 83 * 85 * @since BuddyPress (1.5.1)84 * @since 1.5.1 86 85 * 87 86 * @param string $redirect_to URL to redirect user to. … … 103 102 * Fires before the validation of a new signup. 104 103 * 105 * @since BuddyPress (2.0.0)104 * @since 2.0.0 106 105 */ 107 106 do_action( 'bp_signup_pre_validate' ); … … 174 173 * Fires after the validation of a new signup. 175 174 * 176 * @since BuddyPress (1.1.0)175 * @since 1.1.0 177 176 */ 178 177 do_action( 'bp_signup_validate' ); … … 187 186 * Filters the error message in the loop. 188 187 * 189 * @since BuddyPress (1.5.0)188 * @since 1.5.0 190 189 * 191 190 * @param string $value Error message wrapped in html. … … 240 239 * Filters the user meta used for signup. 241 240 * 242 * @since BuddyPress (1.1.0)241 * @since 1.1.0 243 242 * 244 243 * @param array $usermeta Array of user meta to add to signup. … … 263 262 * Fires after the completion of a new signup. 264 263 * 265 * @since BuddyPress (1.1.0)264 * @since 1.1.0 266 265 */ 267 266 do_action( 'bp_complete_signup' ); … … 273 272 * Fires right before the loading of the Member registration screen template file. 274 273 * 275 * @since BuddyPress (1.5.0)274 * @since 1.5.0 276 275 */ 277 276 do_action( 'bp_core_screen_signup' ); … … 280 279 * Filters the template to load for the Member registration page screen. 281 280 * 282 * @since BuddyPress (1.5.0)281 * @since 1.5.0 283 282 * 284 283 * @param string $value Path to the Member registration template to load. … … 315 314 * Filters the URL to redirect logged in users to when visiting activation page. 316 315 * 317 * @since BuddyPress (1.9.0)316 * @since 1.9.0 318 317 * 319 318 * @param string $redirect_to URL to redirect user to. … … 342 341 * Filters the activation signup. 343 342 * 344 * @since BuddyPress (1.1.0)343 * @since 1.1.0 345 344 * 346 345 * @param bool|int $value Value returned by activation. … … 370 369 * Filters the template to load for the Member activation page screen. 371 370 * 372 * @since BuddyPress (1.1.1)371 * @since 1.1.1 373 372 * 374 373 * @param string $value Path to the Member activation template to load. … … 386 385 * member template parts to the_title and the_content areas of a theme. 387 386 * 388 * @since BuddyPress (1.7.0)387 * @since 1.7.0 389 388 */ 390 389 class BP_Members_Theme_Compat { … … 393 392 * Set up the members component theme compatibility. 394 393 * 395 * @since BuddyPress (1.7.0)394 * @since 1.7.0 396 395 */ 397 396 public function __construct() { … … 402 401 * Are we looking at something that needs members theme compatibility? 403 402 * 404 * @since BuddyPress (1.7.0)403 * @since 1.7.0 405 404 */ 406 405 public function is_members() { … … 418 417 * Fires if looking at Members directory when needing theme compat. 419 418 * 420 * @since BuddyPress (1.5.0)419 * @since 1.5.0 421 420 */ 422 421 do_action( 'bp_members_screen_index' ); … … 438 437 * Fires if looking at Members user page when needing theme compat. 439 438 * 440 * @since BuddyPress (1.5.0)439 * @since 1.5.0 441 440 */ 442 441 do_action( 'bp_members_screen_display_profile' ); … … 457 456 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 458 457 * 459 * @since BuddyPress (1.8.0)458 * @since 1.8.0 460 459 * 461 460 * @param array $templates The templates from bp_get_theme_compat_templates(). … … 468 467 * Filters the template hierarchy for theme compat and members directory page. 469 468 * 470 * @since BuddyPress (1.8.0)469 * @since 1.8.0 471 470 * 472 471 * @param array $value Array of template paths to add to hierarchy. … … 486 485 * Update the global $post with directory data. 487 486 * 488 * @since BuddyPress (1.7.0)487 * @since 1.7.0 489 488 */ 490 489 public function directory_dummy_post() { … … 505 504 * Filter the_content with the members index template part. 506 505 * 507 * @since BuddyPress (1.7.0)506 * @since 1.7.0 508 507 */ 509 508 public function directory_content() { … … 519 518 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 520 519 * 521 * @since BuddyPress (1.8.0)520 * @since 1.8.0 522 521 * 523 522 * @param string $templates The templates from … … 533 532 * Filters the template hierarchy for theme compat and member pages. 534 533 * 535 * @since BuddyPress (1.8.0)534 * @since 1.8.0 536 535 * 537 536 * @param array $value Array of template paths to add to hierarchy. … … 555 554 * Update the global $post with the displayed user's data. 556 555 * 557 * @since BuddyPress (1.7.0)556 * @since 1.7.0 558 557 */ 559 558 public function single_dummy_post() { … … 574 573 * Filter the_content with the members' single home template part. 575 574 * 576 * @since BuddyPress (1.7.0)575 * @since 1.7.0 577 576 */ 578 577 public function single_dummy_content() { … … 588 587 * registration template parts to the_title and the_content areas of a theme. 589 588 * 590 * @since BuddyPress (1.7.0)589 * @since 1.7.0 591 590 */ 592 591 class BP_Registration_Theme_Compat { … … 595 594 * Setup the groups component theme compatibility. 596 595 * 597 * @since BuddyPress (1.7.0)596 * @since 1.7.0 598 597 */ 599 598 public function __construct() { … … 604 603 * Are we looking at either the registration or activation pages? 605 604 * 606 * @since BuddyPress (1.7.0)605 * @since 1.7.0 607 606 */ 608 607 public function is_registration() { … … 630 629 * {@link https://codex.wordpress.org/Template_Hierarchy template hierarchy}. 631 630 * 632 * @since BuddyPress (1.8.0)631 * @since 1.8.0 633 632 * 634 633 * @param string $templates The templates from bp_get_theme_compat_templates(). … … 645 644 * being used. 646 645 * 647 * @since BuddyPress (1.8.0)646 * @since 1.8.0 648 647 * 649 648 * @param array $value Array of template paths to add to hierarchy. … … 663 662 * Update the global $post with dummy data. 664 663 * 665 * @since BuddyPress (1.7.0)664 * @since 1.7.0 666 665 */ 667 666 public function dummy_post() { … … 699 698 * Filter the_content with either the register or activate templates. 700 699 * 701 * @since BuddyPress (1.7.0)700 * @since 1.7.0 702 701 */ 703 702 public function dummy_content() { -
trunk/src/bp-members/bp-members-template.php
r10126 r10149 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Member Template Tags. … … 10 9 */ 11 10 12 // Exit if accessed directly 11 // Exit if accessed directly. 13 12 defined( 'ABSPATH' ) || exit; 14 13 … … 16 15 * Output the profile component slug. 17 16 * 18 * @since BuddyPress (2.4.0)17 * @since 2.4.0 19 18 * 20 19 * @uses bp_get_profile_slug() … … 26 25 * Return the profile component slug. 27 26 * 28 * @since BuddyPress (2.4.0)27 * @since 2.4.0 29 28 * 30 29 * @return string … … 35 34 * Filters the profile component slug. 36 35 * 37 * @since BuddyPress (2.4.0)36 * @since 2.4.0 38 37 * 39 38 * @param string $slug Profile component slug. … … 45 44 * Output the members component slug. 46 45 * 47 * @since BuddyPress (1.5.0)46 * @since 1.5.0 48 47 * 49 48 * @uses bp_get_members_slug() … … 55 54 * Return the members component slug. 56 55 * 57 * @since BuddyPress (1.5.0)56 * @since 1.5.0 58 57 * 59 58 * @return string … … 64 63 * Filters the Members component slug. 65 64 * 66 * @since BuddyPress (1.5.0)65 * @since 1.5.0 67 66 * 68 67 * @param string $slug Members component slug. … … 74 73 * Output the members component root slug. 75 74 * 76 * @since BuddyPress (1.5.0)75 * @since 1.5.0 77 76 * 78 77 * @uses bp_get_members_root_slug() … … 84 83 * Return the members component root slug. 85 84 * 86 * @since BuddyPress (1.5.0)85 * @since 1.5.0 87 86 * 88 87 * @return string … … 93 92 * Filters the Members component root slug. 94 93 * 95 * @since BuddyPress (1.5.0)94 * @since 1.5.0 96 95 * 97 96 * @param string $slug Members component root slug. … … 103 102 * Output member directory permalink. 104 103 * 105 * @since BuddyPress (1.5.0)104 * @since 1.5.0 106 105 * 107 106 * @uses bp_get_members_directory_permalink() … … 113 112 * Return member directory permalink. 114 113 * 115 * @since BuddyPress (1.5.0)114 * @since 1.5.0 116 115 * 117 116 * @return string … … 122 121 * Filters the member directory permalink. 123 122 * 124 * @since BuddyPress (1.5.0)123 * @since 1.5.0 125 124 * 126 125 * @param string $value Members directory permalink. … … 132 131 * Output the sign-up slug. 133 132 * 134 * @since BuddyPress (1.5.0)133 * @since 1.5.0 135 134 * 136 135 * @uses bp_get_signup_slug() … … 142 141 * Return the sign-up slug. 143 142 * 144 * @since BuddyPress (1.5.0)143 * @since 1.5.0 145 144 * 146 145 * @return string … … 160 159 * Filters the sign-up slug. 161 160 * 162 * @since BuddyPress (1.5.0)161 * @since 1.5.0 163 162 * 164 163 * @param string $slug Sign-up slug. … … 170 169 * Output the activation slug. 171 170 * 172 * @since BuddyPress (1.5.0)171 * @since 1.5.0 173 172 * 174 173 * @uses bp_get_activate_slug() … … 180 179 * Return the activation slug. 181 180 * 182 * @since BuddyPress (1.5.0)181 * @since 1.5.0 183 182 * 184 183 * @return string … … 198 197 * Filters the activation slug. 199 198 * 200 * @since BuddyPress (1.5.0)199 * @since 1.5.0 201 200 * 202 201 * @param string $slug Activation slug. … … 442 441 * Fires right before the rewinding of members listing. 443 442 * 444 * @since BuddyPress (1.5.0)443 * @since 1.5.0 445 444 */ 446 445 do_action('member_loop_end'); … … 473 472 * Fires if the current member is the first in the loop. 474 473 * 475 * @since BuddyPress (1.5.0)474 * @since 1.5.0 476 475 */ 477 476 do_action( 'member_loop_start' ); … … 631 630 * Filters whether or not BuddyPress has members to iterate over. 632 631 * 633 * @since BuddyPress (1.2.4)632 * @since 1.2.4 634 633 * 635 634 * @param bool $value Whether or not there are members to iterate over. … … 710 709 * Filters the members pagination count. 711 710 * 712 * @since BuddyPress (1.5.0)711 * @since 1.5.0 713 712 * 714 713 * @param string $pag Pagination count string. … … 734 733 * Filters the members pagination link. 735 734 * 736 * @since BuddyPress (1.2.0)735 * @since 1.2.0 737 736 * 738 737 * @param string $pag_links HTML markup for pagination links. … … 761 760 * Filters the ID of the current member in the loop. 762 761 * 763 * @since BuddyPress (1.2.0)762 * @since 1.2.0 764 763 * 765 764 * @param int $member_id ID of the member being iterated over. … … 771 770 * Output the row class of the current member in the loop. 772 771 * 773 * @since BuddyPress (1.7.0)772 * @since 1.7.0 774 773 * 775 774 * @param array $classes Array of custom classes … … 781 780 * Return the row class of the current member in the loop. 782 781 * 783 * @since BuddyPress (1.7.0)782 * @since 1.7.0 784 783 * 785 784 * @param array $classes Array of custom classes … … 822 821 * Filters the determined classes to add to the HTML element. 823 822 * 824 * @since BuddyPress (1.7.0)823 * @since 1.7.0 825 824 * 826 825 * @param string $classes Classes to be added to the HTML element. … … 850 849 * Filters the nicename of the current member in the loop. 851 850 * 852 * @since BuddyPress (1.2.5)851 * @since 1.2.5 853 852 * 854 853 * @param string $user_nicename Nicename for the current member. … … 874 873 * Filters the login of the current member in the loop. 875 874 * 876 * @since BuddyPress (1.2.5)875 * @since 1.2.5 877 876 * 878 877 * @param string $user_login Login for the current member. … … 898 897 * Filters the email address of the current member in the loop. 899 898 * 900 * @since BuddyPress (1.2.5)899 * @since 1.2.5 901 900 * 902 901 * @param string $user_email Email address for the current member. … … 916 915 * Filters whether the current member in the loop is the logged-in user. 917 916 * 918 * @since BuddyPress (1.2.5)917 * @since 1.2.5 919 918 * 920 919 * @param bool $value Whether current member in the loop is logged in. … … 935 934 * Filters a members avatar. 936 935 * 937 * @since BuddyPress (1.2.0)936 * @since 1.2.0 938 937 * 939 938 * @param string $value Formatted HTML <img> element, … … 982 981 * Filters a members avatar. 983 982 * 984 * @since BuddyPress (1.2.0)983 * @since 1.2.0 985 984 * 986 985 * @param string $value Formatted HTML <img> element, … … 1007 1006 * Filters the permalink for the current member in the loop. 1008 1007 * 1009 * @since BuddyPress (1.2.0)1008 * @since 1.2.0 1010 1009 * 1011 1010 * @param string $value Permalink for the current member in the loop. … … 1032 1031 * Filters the display name of current member in the loop. 1033 1032 * 1034 * @since BuddyPress (1.2.0)1033 * @since 1.2.0 1035 1034 * 1036 1035 * @param string $value Display name for current member. … … 1073 1072 * Filters the display name of current member in the loop. 1074 1073 * 1075 * @since BuddyPress (1.2.0)1074 * @since 1.2.0 1076 1075 * 1077 1076 * @param string $fullname Display name for current member. … … 1133 1132 * Filters the current members last active time. 1134 1133 * 1135 * @since BuddyPress (1.2.0)1134 * @since 1.2.0 1136 1135 * 1137 1136 * @param string $last_activity Formatted time since last activity. … … 1177 1176 * Filters the excerpt of the latest update for current member in the loop. 1178 1177 * 1179 * @since BuddyPress (1.2.5)1178 * @since 1.2.5 1180 1179 * 1181 1180 * @param string $value Excerpt of the latest update for current member in the loop. … … 1196 1195 * Filters the latest update from the current member in the loop. 1197 1196 * 1198 * @since BuddyPress (1.2.0)1197 * @since 1.2.0 1199 1198 * 1200 1199 * @param string $update_content Formatted latest update for current member. … … 1278 1277 * Filters resulting piece of member profile data. 1279 1278 * 1280 * @since BuddyPress (1.2.0)1279 * @since 1.2.0 1281 1280 * 1282 1281 * @param string|bool $data Profile data if found, otherwise false. … … 1304 1303 * Filters the 'registered [x days ago]' string for the current member. 1305 1304 * 1306 * @since BuddyPress (2.1.0)1305 * @since 2.1.0 1307 1306 * 1308 1307 * @param string $registered The 'registered [x days ago]' string. … … 1359 1358 * Filters the Members component search form. 1360 1359 * 1361 * @since BuddyPress (1.9.0)1360 * @since 1.9.0 1362 1361 * 1363 1362 * @param string $search_form_html HTML markup for the member search form. … … 1382 1381 * Filters the total site member count. 1383 1382 * 1384 * @since BuddyPress (1.2.0)1383 * @since 1.2.0 1385 1384 * 1386 1385 * @param int $value Number-formatted total site member count. … … 1471 1470 * This is a dynamic filter that is dependent on the navigation tab component being rendered. 1472 1471 * 1473 * @since BuddyPress (1.1.0)1472 * @since 1.1.0 1474 1473 * 1475 1474 * @param string $value Markup for the tab list item including link. … … 1525 1524 * Filters the logged in user's avatar. 1526 1525 * 1527 * @since BuddyPress (1.1.0)1526 * @since 1.1.0 1528 1527 * 1529 1528 * @param string $value User avatar string. … … 1574 1573 * Filters the displayed user's avatar. 1575 1574 * 1576 * @since BuddyPress (1.1.0)1575 * @since 1.1.0 1577 1576 * 1578 1577 * @param string $value User avatar string. … … 1604 1603 * Filters the email address of the displayed user. 1605 1604 * 1606 * @since BuddyPress (1.5.0)1605 * @since 1.5.0 1607 1606 * 1608 1607 * @param string $retval Email address for displayed user. … … 1623 1622 * Filters the 'active [x days ago]' string for a user. 1624 1623 * 1625 * @since BuddyPress (1.0.0)1624 * @since 1.0.0 1626 1625 * 1627 1626 * @param string $value Formatted 'active [x days ago]' string. … … 1646 1645 * Filters the 'active [x days ago]' string for a user. 1647 1646 * 1648 * @since BuddyPress (1.5.0)1647 * @since 1.5.0 1649 1648 * 1650 1649 * @param string $value Formatted 'active [x days ago]' string. … … 1684 1683 * Filters the first name of a user. 1685 1684 * 1686 * @since BuddyPress (1.2.0)1685 * @since 1.2.0 1687 1686 * 1688 1687 * @param string $value First name of user. … … 1708 1707 * Filters the link for the logged-in user's profile. 1709 1708 * 1710 * @since BuddyPress (1.2.4)1709 * @since 1.2.4 1711 1710 * 1712 1711 * @param string $value Link for the logged-in user's profile. … … 1731 1730 * Filters the link for the displayed user's profile. 1732 1731 * 1733 * @since BuddyPress (1.2.4)1732 * @since 1.2.4 1734 1733 * 1735 1734 * @param string $value Link for the displayed user's profile. … … 1761 1760 * Filters the generated link for the displayed user's profile. 1762 1761 * 1763 * @since BuddyPress (1.0.0)1762 * @since 1.0.0 1764 1763 * 1765 1764 * @param string $value Generated link for the displayed user's profile. … … 1779 1778 * Filters the generated link for the logged-in user's profile. 1780 1779 * 1781 * @since BuddyPress (1.0.0)1780 * @since 1.0.0 1782 1781 * 1783 1782 * @param string $value Generated link for the logged-in user's profile. … … 1803 1802 * Filters the displayed user's display name. 1804 1803 * 1805 * @since BuddyPress (1.2.0)1804 * @since 1.2.0 1806 1805 * 1807 1806 * @param string $value Displayed user's display name. … … 1833 1832 * Filters the logged-in user's display name. 1834 1833 * 1835 * @since BuddyPress (1.0.0)1834 * @since 1.0.0 1836 1835 * 1837 1836 * @param string $value Logged-in user's display name. … … 1863 1862 * Filters the username of the displayed user. 1864 1863 * 1865 * @since BuddyPress (1.2.0)1864 * @since 1.2.0 1866 1865 * 1867 1866 * @param string $username Username of the displayed user. … … 1893 1892 * Filters the username of the logged-in user. 1894 1893 * 1895 * @since BuddyPress (1.2.0)1894 * @since 1.2.0 1896 1895 * 1897 1896 * @param string $username Username of the logged-in user. … … 1902 1901 * Echo the current member type message. 1903 1902 * 1904 * @since BuddyPress (2.3.0)1903 * @since 2.3.0 1905 1904 */ 1906 1905 function bp_current_member_type_message() { … … 1910 1909 * Generate the current member type message. 1911 1910 * 1912 * @since BuddyPress (2.3.0)1911 * @since 2.3.0 1913 1912 * 1914 1913 * @return string … … 1927 1926 * Do we have a working custom sign up page? 1928 1927 * 1929 * @since BuddyPress (1.5.0)1928 * @since 1.5.0 1930 1929 * 1931 1930 * @uses bp_get_signup_slug() To make sure there is a slug assigned to the page. … … 1963 1962 * Filters the URL to the signup page. 1964 1963 * 1965 * @since BuddyPress (1.1.0)1964 * @since 1.1.0 1966 1965 * 1967 1966 * @param string $page URL to the signup page. … … 1973 1972 * Do we have a working custom activation page? 1974 1973 * 1975 * @since BuddyPress (1.5.0)1974 * @since 1.5.0 1976 1975 * 1977 1976 * @uses bp_get_activate_slug() To make sure there is a slug assigned to the page. … … 2009 2008 * Filters the URL of the activation page. 2010 2009 * 2011 * @since BuddyPress (1.2.0)2010 * @since 1.2.0 2012 2011 * 2013 2012 * @param string $page URL to the activation page. … … 2037 2036 * Filters the username submitted during signup. 2038 2037 * 2039 * @since BuddyPress (1.1.0)2038 * @since 1.1.0 2040 2039 * 2041 2040 * @param string $value Username submitted during signup. … … 2065 2064 * Filters the email address submitted during signup. 2066 2065 * 2067 * @since BuddyPress (1.1.0)2066 * @since 1.1.0 2068 2067 * 2069 2068 * @param string $value Email address submitted during signup. … … 2091 2090 * Filters the 'signup_with_blog' value submitted during signup. 2092 2091 * 2093 * @since BuddyPress (1.1.0)2092 * @since 1.1.0 2094 2093 * 2095 2094 * @param string $value 'signup_with_blog' value submitted during signup. … … 2119 2118 * Filters the 'signup_blog_url' value submitted during signup. 2120 2119 * 2121 * @since BuddyPress (1.1.0)2120 * @since 1.1.0 2122 2121 * 2123 2122 * @param string $value 'signup_blog_url' value submitted during signup. … … 2129 2128 * Output the base URL for subdomain installations of WordPress Multisite. 2130 2129 * 2131 * @since BuddyPress (2.1.0)2130 * @since 2.1.0 2132 2131 */ 2133 2132 function bp_signup_subdomain_base() { … … 2139 2138 * Replaces bp_blogs_get_subdomain_base() 2140 2139 * 2141 * @since BuddyPress (2.1.0)2140 * @since 2.1.0 2142 2141 * 2143 2142 * @return string The base URL - eg, 'example.com' for site_url() example.com or www.example.com. … … 2152 2151 * Filters the base URL for subdomain installations of WordPress Multisite. 2153 2152 * 2154 * @since BuddyPress (2.1.0)2153 * @since 2.1.0 2155 2154 * 2156 2155 * @param string $subdomain_base The base URL - eg, 'example.com' for … … 2181 2180 * Filters the 'signup_blog_title' value submitted during signup. 2182 2181 * 2183 * @since BuddyPress (1.1.0)2182 * @since 1.1.0 2184 2183 * 2185 2184 * @param string $value 'signup_blog_title' value submitted during signup. … … 2209 2208 * Filters the 'signup_blog_privacy' value submitted during signup. 2210 2209 * 2211 * @since BuddyPress (1.1.0)2210 * @since 1.1.0 2212 2211 * 2213 2212 * @param string $value 'signup_blog_privacy' value submitted during signup. … … 2245 2244 * Filters the avatar dir used during signup. 2246 2245 * 2247 * @since BuddyPress (1.1.0)2246 * @since 1.1.0 2248 2247 * 2249 2248 * @param string|bool $signup_avatar_dir Avatar dir used during signup or false. … … 2330 2329 * Filters the base Gravatar url used for signup avatars when no avatar dir found. 2331 2330 * 2332 * @since BuddyPress (1.0.2)2331 * @since 1.0.2 2333 2332 * 2334 2333 * @param string $value Gravatar url to use. … … 2342 2341 * Filters the user avatar during signup. 2343 2342 * 2344 * @since BuddyPress (1.1.0)2343 * @since 1.1.0 2345 2344 * 2346 2345 * @param string $gravatar_img Avatar HTML image tag. … … 2384 2383 * Filters whether or not new signups are allowed. 2385 2384 * 2386 * @since BuddyPress (1.5.0)2385 * @since 1.5.0 2387 2386 * 2388 2387 * @param bool $signup_allowed Whether or not new signups are allowed. … … 2394 2393 * Hook member activity feed to <head>. 2395 2394 * 2396 * @since BuddyPress (1.5.0)2395 * @since 1.5.0 2397 2396 */ 2398 2397 function bp_members_activity_feed() { -
trunk/src/bp-members/bp-members-widgets.php
r10123 r10149 6 6 */ 7 7 8 // Exit if accessed directly 8 // Exit if accessed directly. 9 9 defined( 'ABSPATH' ) || exit; 10 10 … … 14 14 * Previously, these widgets were registered in bp-core. 15 15 * 16 * @since BuddyPress (2.2.0)16 * @since 2.2.0 17 17 */ 18 18 function bp_members_register_widgets() { … … 26 26 * Members Widget. 27 27 * 28 * @since BuddyPress (1.0.3)28 * @since 1.0.3 29 29 */ 30 30 class BP_Core_Members_Widget extends WP_Widget { … … 67 67 * Filters the title of the Members widget. 68 68 * 69 * @since BuddyPress (1.8.0)70 * @since BuddyPress (2.3.0)Added 'instance' and 'id_base' to arguments passed to filter.69 * @since 1.8.0 70 * @since 2.3.0 Added 'instance' and 'id_base' to arguments passed to filter. 71 71 * 72 72 * @param string $title The widget title. … … 80 80 * Filters the separator of the member widget links. 81 81 * 82 * @since BuddyPress (2.4.0)82 * @since 2.4.0 83 83 * 84 84 * @param string $separator Separator string. Default '|'. … … 231 231 * Merge the widget settings into defaults array. 232 232 * 233 * @since BuddyPress (2.3.0)233 * @since 2.3.0 234 234 * 235 235 * @param array $instance Widget instance settings. … … 252 252 * Who's Online Widget. 253 253 * 254 * @since BuddyPress (1.0.3)254 * @since 1.0.3 255 255 */ 256 256 class BP_Core_Whos_Online_Widget extends WP_Widget { … … 284 284 * Filters the title of the Who's Online widget. 285 285 * 286 * @since BuddyPress (1.8.0)287 * @since BuddyPress (2.3.0)Added 'instance' and 'id_base' to arguments passed to filter.286 * @since 1.8.0 287 * @since 2.3.0 Added 'instance' and 'id_base' to arguments passed to filter. 288 288 * 289 289 * @param string $title The widget title. … … 383 383 * Merge the widget settings into defaults array. 384 384 * 385 * @since BuddyPress (2.3.0)385 * @since 2.3.0 386 386 * 387 387 * @param array $instance Widget instance settings. … … 402 402 * Recently Active Members Widget. 403 403 * 404 * @since BuddyPress (1.0.3)404 * @since 1.0.3 405 405 */ 406 406 class BP_Core_Recently_Active_Widget extends WP_Widget { … … 434 434 * Filters the title of the Recently Active widget. 435 435 * 436 * @since BuddyPress (1.8.0)437 * @since BuddyPress (2.3.0)Added 'instance' and 'id_base' to arguments passed to filter.436 * @since 1.8.0 437 * @since 2.3.0 Added 'instance' and 'id_base' to arguments passed to filter. 438 438 * 439 439 * @param string $title The widget title. … … 533 533 * Merge the widget settings into defaults array. 534 534 * 535 * @since BuddyPress (2.3.0)535 * @since 2.3.0 536 536 * 537 537 * @param array $instance Widget instance settings. … … 552 552 * AJAX request handler for Members widgets. 553 553 * 554 * @since BuddyPress (1.0.0)554 * @since 1.0.0 555 555 * 556 556 * @see BP_Core_Members_Widget -
trunk/src/bp-members/classes/class-bp-signup.php
r9877 r10149 1 1 <?php 2 3 2 /** 4 3 * Signups Management class. 5 4 * 5 * @since 2.0.0 6 * 6 7 * @package BuddyPress 7 8 * @subpackage coreClasses 8 *9 * @since BuddyPress (2.0.0)10 9 */ 10 11 11 class BP_Signup { 12 12 … … 73 73 * Class constructor. 74 74 * 75 * @since BuddyPress (2.0.0)75 * @since 2.0.0 76 76 * 77 77 * @param integer $signup_id The ID for the signup being queried. … … 87 87 * Populate the instantiated class with data based on the signup_id provided. 88 88 * 89 * @since BuddyPress (2.0.0)89 * @since 2.0.0 90 90 */ 91 91 public function populate() { … … 109 109 * Fetch signups based on parameters. 110 110 * 111 * @since BuddyPress (2.0.0)111 * @since 2.0.0 112 112 * 113 113 * @param array $args the argument to retrieve desired signups. … … 180 180 * Filters the Signups paged query. 181 181 * 182 * @since BuddyPress (2.0.0)182 * @since 2.0.0 183 183 * 184 184 * @param string $value SQL statement. … … 241 241 * Filters the Signups count query. 242 242 * 243 * @since BuddyPress (2.0.0)243 * @since 2.0.0 244 244 * 245 245 * @param string $value SQL statement. … … 256 256 * Add a signup. 257 257 * 258 * @since BuddyPress (2.0.0)258 * @since 2.0.0 259 259 * 260 260 * @param array $args … … 297 297 * Filters the result of a signup addition. 298 298 * 299 * @since BuddyPress (2.0.0)299 * @since 2.0.0 300 300 * 301 301 * @param int|bool $retval Newly added user ID on success, false on failure. … … 314 314 * default behavior. 315 315 * 316 * @since BuddyPress (2.0.0)316 * @since 2.0.0 317 317 * 318 318 * @param string $user_login User login string. … … 370 370 * Filters the user ID for the backcompat functionality. 371 371 * 372 * @since BuddyPress (2.0.0)372 * @since 2.0.0 373 373 * 374 374 * @param int $user_id User ID being registered. … … 380 380 * Check a user status (from wp_users) on a non-multisite config. 381 381 * 382 * @since BuddyPress (2.0.0)382 * @since 2.0.0 383 383 * 384 384 * @param int $user_id ID of the user being checked. … … 398 398 * Filters the user status of a provided user ID. 399 399 * 400 * @since BuddyPress (2.0.0)400 * @since 2.0.0 401 401 * 402 402 * @param int $value User status of the provided user ID. … … 408 408 * Activate a signup. 409 409 * 410 * @since BuddyPress (2.0.0)410 * @since 2.0.0 411 411 * 412 412 * @param string $key Activation key. … … 445 445 * Filters the status of the activated user. 446 446 * 447 * @since BuddyPress (2.0.0)447 * @since 2.0.0 448 448 * 449 449 * @param bool $activated Whether or not the activation was successful. … … 455 455 * How many inactive signups do we have? 456 456 * 457 * @since BuddyPress (2.0.0)457 * @since 2.0.0 458 458 * 459 459 * @return int The number of signups. … … 468 468 * Filters the total inactive signups. 469 469 * 470 * @since BuddyPress (2.0.0)470 * @since 2.0.0 471 471 * 472 472 * @param int $count_signups How many total signups there are. … … 481 481 * email was sent and how many times activation was sent. 482 482 * 483 * @since BuddyPress (2.0.0)483 * @since 2.0.0 484 484 * 485 485 * @param array $args … … 526 526 * Filters the signup ID which received a meta update. 527 527 * 528 * @since BuddyPress (2.0.0)528 * @since 2.0.0 529 529 * 530 530 * @param int $value The signup ID. … … 536 536 * Resend an activation email. 537 537 * 538 * @since BuddyPress (2.0.0)538 * @since 2.0.0 539 539 * 540 540 * @param array $signup_ids Single ID or list of IDs to resend. … … 560 560 * Fires before activation emails are resent. 561 561 * 562 * @since BuddyPress (2.0.0)562 * @since 2.0.0 563 563 * 564 564 * @param array $signup_ids Array of IDs to resend activation emails to. … … 606 606 * Fires after activation emails are resent. 607 607 * 608 * @since BuddyPress (2.0.0)608 * @since 2.0.0 609 609 * 610 610 * @param array $signup_ids Array of IDs to resend activation emails to. … … 616 616 * Filters the result of the metadata for signup activation email resends. 617 617 * 618 * @since BuddyPress (2.0.0)618 * @since 2.0.0 619 619 * 620 620 * @param array $result Updated metadata related to activation emails. … … 626 626 * Activate a pending account. 627 627 * 628 * @since BuddyPress (2.0.0)628 * @since 2.0.0 629 629 * 630 630 * @param array $signup_ids Single ID or list of IDs to activate. … … 650 650 * Fires before activation of user accounts. 651 651 * 652 * @since BuddyPress (2.0.0)652 * @since 2.0.0 653 653 * 654 654 * @param array $signup_ids Array of IDs to activate. … … 689 689 * Fires after activation of user accounts. 690 690 * 691 * @since BuddyPress (2.0.0)691 * @since 2.0.0 692 692 * 693 693 * @param array $signup_ids Array of IDs activated activate. … … 699 699 * Filters the result of the metadata after user activation. 700 700 * 701 * @since BuddyPress (2.0.0)701 * @since 2.0.0 702 702 * 703 703 * @param array $result Updated metadata related to user activation. … … 709 709 * Delete a pending account. 710 710 * 711 * @since BuddyPress (2.0.0)711 * @since 2.0.0 712 712 * 713 713 * @param array $signup_ids Single ID or list of IDs to delete. … … 735 735 * Fires before deletion of pending accounts. 736 736 * 737 * @since BuddyPress (2.0.0)737 * @since 2.0.0 738 738 * 739 739 * @param array $signup_ids Array of pending IDs to delete. … … 777 777 * Fires after deletion of pending accounts. 778 778 * 779 * @since BuddyPress (2.0.0)779 * @since 2.0.0 780 780 * 781 781 * @param array $signup_ids Array of pending IDs to delete. … … 787 787 * Filters the result of the metadata for deleted pending accounts. 788 788 * 789 * @since BuddyPress (2.0.0)789 * @since 2.0.0 790 790 * 791 791 * @param array $result Updated metadata related to deleted pending accounts.
Note: See TracChangeset
for help on using the changeset viewer.