Changeset 48590 for trunk/src/wp-includes/class-wp-user.php
- Timestamp:
- 07/23/2020 09:09:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-user.php
r48574 r48590 116 116 * @since 2.0.0 117 117 * 118 * @param int|string|stdClass|WP_User $id User's ID, a WP_User object, or a user object from the DB.119 * @param string $nameOptional. User's username120 * @param int $site_id Optional Site ID, defaults to current site.118 * @param int|string|stdClass|WP_User $id User's ID, a WP_User object, or a user object from the DB. 119 * @param string $name Optional. User's username 120 * @param int $site_id Optional Site ID, defaults to current site. 121 121 */ 122 122 public function __construct( $id = 0, $name = '', $site_id = '' ) { … … 182 182 * @global wpdb $wpdb WordPress database abstraction object. 183 183 * 184 * @param string $field The field to query against: 'id', 'ID', 'slug', 'email' or 'login'.184 * @param string $field The field to query against: 'id', 'ID', 'slug', 'email' or 'login'. 185 185 * @param string|int $value The field value 186 186 * @return object|false Raw user object … … 440 440 * @since 4.3.0 441 441 * 442 * @param string 443 * @param array 442 * @param string $name Method to call. 443 * @param array $arguments Arguments to pass when calling. 444 444 * @return mixed|false Return value of the callback, false otherwise. 445 445 */ … … 638 638 * @since 2.0.0 639 639 * 640 * @param int $maxMax level of user.640 * @param int $max Max level of user. 641 641 * @param string $item Level capability name. 642 642 * @return int Max Level. … … 673 673 * @since 2.0.0 674 674 * 675 * @param string $cap Capability name.676 * @param bool $grant Whether to grant capability to user.675 * @param string $cap Capability name. 676 * @param bool $grant Whether to grant capability to user. 677 677 */ 678 678 public function add_cap( $cap, $grant = true ) {
Note: See TracChangeset
for help on using the changeset viewer.