Skip to content

Commit

Permalink
Merge pull request #462 from ernilambar/fix-menu-command-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Feb 13, 2024
2 parents e87a265 + 9467a93 commit a9761dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
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

0 comments on commit a9761dc

Please sign in to comment.