|
28 | 28 | * |
29 | 29 | * # Delete user 123 and reassign posts to user 567 |
30 | 30 | * $ wp user delete 123 --reassign=567 |
31 | | - * Success: Removed user 123 from http://example.com |
| 31 | + * Success: Removed user 123 from http://example.com. |
32 | 32 | * |
33 | 33 | * @package wp-cli |
34 | 34 | */ |
@@ -262,12 +262,12 @@ public function get( $args, $assoc_args ) { |
262 | 262 | * |
263 | 263 | * # Delete user 123 and reassign posts to user 567 |
264 | 264 | * $ wp user delete 123 --reassign=567 |
265 | | - * Success: Removed user 123 from http://example.com |
| 265 | + * Success: Removed user 123 from http://example.com. |
266 | 266 | * |
267 | 267 | * # Delete all contributors and reassign their posts to user 2 |
268 | 268 | * $ wp user delete $(wp user list --role=contributor --field=ID) --reassign=2 |
269 | | - * Success: Removed user 813 from http://example.com |
270 | | - * Success: Removed user 578 from http://example.com |
| 269 | + * Success: Removed user 813 from http://example.com. |
| 270 | + * Success: Removed user 578 from http://example.com. |
271 | 271 | * |
272 | 272 | * # Delete all contributors in batches of 100 (avoid error: argument list too long: wp) |
273 | 273 | * $ wp user delete $(wp user list --role=contributor --field=ID | head -n 100) |
@@ -979,9 +979,9 @@ public function list_caps( $args, $assoc_args ) { |
979 | 979 | * |
980 | 980 | * # Import users from local CSV file |
981 | 981 | * $ wp user import-csv /path/to/users.csv |
982 | | - * Success: bobjones created |
983 | | - * Success: newuser1 created |
984 | | - * Success: existinguser created |
| 982 | + * Success: bobjones created. |
| 983 | + * Success: newuser1 created. |
| 984 | + * Success: existinguser created. |
985 | 985 | * |
986 | 986 | * # Import users from remote CSV file |
987 | 987 | * $ wp user import-csv http://example.com/users.csv |
@@ -1178,20 +1178,26 @@ public function import_csv( $args, $assoc_args ) { |
1178 | 1178 | * Reset password for editor. |
1179 | 1179 | * Success: Passwords reset for 2 users. |
1180 | 1180 | * |
| 1181 | + * # Reset and display the password. |
| 1182 | + * $ wp user reset-password editor --show-password |
| 1183 | + * Reset password for editor. |
| 1184 | + * Password: N6hAau0fXZMN#rLCIirdEGOh |
| 1185 | + * Success: Password reset for 1 user. |
| 1186 | + * |
1181 | 1187 | * # Reset the password for one user, displaying only the new password, and not sending the change email. |
1182 | 1188 | * $ wp user reset-password admin --skip-email --porcelain |
1183 | 1189 | * yV6BP*!d70wg |
1184 | 1190 | * |
1185 | 1191 | * # Reset password for all users. |
1186 | 1192 | * $ wp user reset-password $(wp user list --format=ids) |
1187 | | - * Reset password for admin |
1188 | | - * Reset password for editor |
1189 | | - * Reset password for subscriber |
| 1193 | + * Reset password for admin. |
| 1194 | + * Reset password for editor. |
| 1195 | + * Reset password for subscriber. |
1190 | 1196 | * Success: Passwords reset for 3 users. |
1191 | 1197 | * |
1192 | 1198 | * # Reset password for all users with a particular role. |
1193 | 1199 | * $ wp user reset-password $(wp user list --format=ids --role=administrator) |
1194 | | - * Reset password for admin |
| 1200 | + * Reset password for admin. |
1195 | 1201 | * Success: Password reset for 1 user. |
1196 | 1202 | * |
1197 | 1203 | * @subcommand reset-password |
@@ -1287,7 +1293,7 @@ public static function wp_new_user_notification( $user_id, $password ) { |
1287 | 1293 | * |
1288 | 1294 | * $ wp user spam 123 |
1289 | 1295 | * User 123 marked as spam. |
1290 | | - * Success: Spamed 1 of 1 users. |
| 1296 | + * Success: Spammed 1 of 1 users. |
1291 | 1297 | */ |
1292 | 1298 | public function spam( $args ) { |
1293 | 1299 | $this->update_msuser_status( $args, 'spam', '1' ); |
|
0 commit comments