Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct super-admin commands examples #57

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions src/Super_Admin_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
*
* ## EXAMPLES
*
* # List user with super-admin capabilities
* # List user with super-admin capabilities.
* $ wp super-admin list
* supervisor
* administrator
*
* # Grant super-admin privileges to the user.
* $ wp super-admin add superadmin2
* Success: Granted super-admin capabilities.
* Success: Granted super-admin capabilities to 1 user.
*
* # Revoke super-admin privileges to the user.
* # Revoke super-admin privileges from the user.
* $ wp super-admin remove superadmin2
* Success: Revoked super-admin capabilities.
* Success: Revoked super-admin capabilities from 1 user.
*
* @package wp-cli
*/
Expand Down Expand Up @@ -54,7 +54,7 @@ public function __construct() {
*
* ## EXAMPLES
*
* # List user with super-admin capabilities
* # List user with super-admin capabilities.
* $ wp super-admin list
* supervisor
* administrator
Expand Down Expand Up @@ -92,8 +92,9 @@ public function list_subcommand( $_, $assoc_args ) {
*
* ## EXAMPLES
*
* # Grant super-admin privileges to the user.
* $ wp super-admin add superadmin2
* Success: Granted super-admin capabilities.
* Success: Granted super-admin capabilities to 1 user.
*/
public function add( $args, $_ ) {

Expand Down Expand Up @@ -156,8 +157,9 @@ public function add( $args, $_ ) {
*
* ## EXAMPLES
*
* # Revoke super-admin privileges from the user.
* $ wp super-admin remove superadmin2
* Success: Revoked super-admin capabilities.
* Success: Revoked super-admin capabilities from 1 user.
*/
public function remove( $args, $_ ) {
$users = $this->fetcher->get_many( $args );
Expand Down
Loading