Title: wp menu location
Published: February 5, 2018
Last modified: April 13, 2026

---

# 󠀁[wp menu location <command>](https://developer.wordpress.org/cli/commands/menu/location/)󠁿

Assigns, removes, and lists a menu’s locations.

## In this article

 * [Examples](https://developer.wordpress.org/cli/commands/menu/location/?output_format=md#examples)
 * [Subcommands](https://developer.wordpress.org/cli/commands/menu/location/?output_format=md#subcommands)

[ Back to top](https://developer.wordpress.org/cli/commands/menu/location/?output_format=md#wp--skip-link--target)

 [ ⌊GitHub⌉ ](https://github.com/wp-cli/entity-command)

 [ View Open Issues (0) ](https://github.com/login?return_to=%2Fissues%3Fq%3Dlabel%3Acommand%3Amenu-location+sort%3Aupdated-desc+org%3Awp-cli+is%3Aopen)
[ View Closed Issues (5) ](https://github.com/login?return_to=%2Fissues%3Fq%3Dlabel%3Acommand%3Amenu-location+sort%3Aupdated-desc+org%3Awp-cli+is%3Aclosed)
[Create New Issue](https://github.com/wp-cli/entity-command/issues/new)

### 󠀁[Examples](https://developer.wordpress.org/cli/commands/menu/location/?output_format=md#examples)󠁿

    ```
    # List available menu locations
    $ wp menu location list
    +----------+-------------------+
    | location | description       |
    +----------+-------------------+
    | primary  | Primary Menu      |
    | social   | Social Links Menu |
    +----------+-------------------+

    # Assign the 'primary-menu' menu to the 'primary' location
    $ wp menu location assign primary-menu primary
    Success: Assigned location primary to menu primary-menu.

    # Remove the 'primary-menu' menu from the 'primary' location
    $ wp menu location remove primary-menu primary
    Success: Removed location from menu.
    ```

### 󠀁[Subcommands](https://developer.wordpress.org/cli/commands/menu/location/?output_format=md#subcommands)󠁿

| Name | Description | 
| [wp menu location assign](https://developer.wordpress.org/cli/commands/menu/location/assign/) |

Assigns a location to a menu.

  | 
| [wp menu location list](https://developer.wordpress.org/cli/commands/menu/location/list/) |

Lists locations for the current theme.

  | 
| [wp menu location remove](https://developer.wordpress.org/cli/commands/menu/location/remove/) |

Removes a location from a menu.

  |

 _Command documentation is regenerated at every release. To add or update an example,
please submit a pull request against the corresponding part of the codebase._