Changeset 52827
- Timestamp:
- 03/07/2022 01:05:52 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user.php
r52823 r52827 179 179 180 180 /** 181 * Return only the main user fields181 * Returns only the main user fields. 182 182 * 183 183 * @since 3.3.0 … … 187 187 * 188 188 * @param string $field The field to query against: 'id', 'ID', 'slug', 'email' or 'login'. 189 * @param string|int $value The field value 190 * @return object|false Raw user object 189 * @param string|int $value The field value. 190 * @return object|false Raw user object. 191 191 */ 192 192 public static function get_data_by( $field, $value ) { … … 390 390 391 391 /** 392 * Determine whether the user exists in the database.392 * Determines whether the user exists in the database. 393 393 * 394 394 * @since 3.4.0 … … 401 401 402 402 /** 403 * Retrieve the value of a property or meta key.403 * Retrieves the value of a property or meta key. 404 404 * 405 405 * Retrieves from the users and usermeta table. … … 415 415 416 416 /** 417 * Determine whether a property or meta key is set417 * Determines whether a property or meta key is set. 418 418 * 419 419 * Consults the users and usermeta tables. … … 421 421 * @since 3.3.0 422 422 * 423 * @param string $key Property 423 * @param string $key Property. 424 424 * @return bool 425 425 */ … … 429 429 430 430 /** 431 * Return an array representation.431 * Returns an array representation. 432 432 * 433 433 * @since 3.5.0 … … 456 456 457 457 /** 458 * Set up capability object properties.458 * Sets up capability object properties. 459 459 * 460 460 * Will set the value for the 'cap_key' property to current database table … … 530 530 531 531 /** 532 * Add role to user.532 * Adds role to user. 533 533 * 534 534 * Updates the user's meta data option with capabilities and roles. … … 564 564 565 565 /** 566 * Remove role from user.566 * Removes role from user. 567 567 * 568 568 * @since 2.0.0 … … 592 592 593 593 /** 594 * Set the role of the user.594 * Sets the role of the user. 595 595 * 596 596 * This will remove the previous roles of the user and assign the user the … … 652 652 653 653 /** 654 * Choose the maximum level the user has.654 * Chooses the maximum level the user has. 655 655 * 656 656 * Will compare the level from the $item parameter against the $max … … 679 679 680 680 /** 681 * Update the maximum user level for the user.681 * Updates the maximum user level for the user. 682 682 * 683 683 * Updates the 'user_level' user metadata (includes prefix that is the … … 696 696 697 697 /** 698 * Add capability and grant or deny access to capability.698 * Adds capability and grant or deny access to capability. 699 699 * 700 700 * @since 2.0.0 … … 711 711 712 712 /** 713 * Remove capability from user.713 * Removes capability from user. 714 714 * 715 715 * @since 2.0.0 … … 728 728 729 729 /** 730 * Remove all of the capabilities of the user.730 * Removes all of the capabilities of the user. 731 731 * 732 732 * @since 2.1.0 … … 825 825 826 826 /** 827 * Convert numeric level to level capability name.827 * Converts numeric level to level capability name. 828 828 * 829 829 * Prepends 'level_' to level number. … … 839 839 840 840 /** 841 * Set the site to operate on. Defaults to the current site.841 * Sets the site to operate on. Defaults to the current site. 842 842 * 843 843 * @since 3.0.0
Note: See TracChangeset
for help on using the changeset viewer.