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

Fix menu command output examples #462

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
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
5 changes: 3 additions & 2 deletions src/Menu_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*
* # Assign the 'my-menu' menu to the 'primary' location
* $ wp menu location assign my-menu primary
* Success: Assigned location to menu.
* Success: Assigned location primary to menu my-menu.
*
* @package wp-cli
*/
Expand Down Expand Up @@ -87,7 +87,8 @@ public function create( $args, $assoc_args ) {
* ## EXAMPLES
*
* $ wp menu delete "My Menu"
* Success: 1 menu deleted.
* Deleted menu 'My Menu'.
* Success: Deleted 1 of 1 menus.
*/
public function delete( $args, $assoc_args ) {

Expand Down
4 changes: 2 additions & 2 deletions src/Menu_Item_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* # Delete menu item
* $ wp menu item delete 45
* Success: 1 menu item deleted.
* Success: Deleted 1 of 1 menu items.
*/
class Menu_Item_Command extends WP_CLI_Command {

Expand Down Expand Up @@ -355,7 +355,7 @@ public function update( $args, $assoc_args ) {
* ## EXAMPLES
*
* $ wp menu item delete 45
* Success: 1 menu item deleted.
* Success: Deleted 1 of 1 menu items.
*
* @subcommand delete
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Menu_Location_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* # Assign the 'primary-menu' menu to the 'primary' location
* $ wp menu location assign primary-menu primary
* Success: Assigned location to menu.
* Success: Assigned location primary to menu primary-menu.
*
* # Remove the 'primary-menu' menu from the 'primary' location
* $ wp menu location remove primary-menu primary
Expand Down
Loading