wp menu location <command>

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

In this article


# 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 to menu.

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


wp menu location assign

Assigns a location to a menu.

wp menu location list

Lists locations for the current theme.

wp 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.