Changeset 10149 for trunk/src/bp-members/bp-members-admin.php
- Timestamp:
- 09/27/2015 05:43:55 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.
Note: See TracChangeset
for help on using the changeset viewer.