wp network meta
Overview
Manage the metadata stored for a specific network (usually stored in wp_sitemeta). This controls network-wide settings like the site name, registration disabled message, or custom plugin configurations.
Subcommands
| Command | Action |
|---|---|
wp network meta add | Add a new metadata entry |
wp network meta get | Retrieve meatdata |
wp network meta update | Update existing metadata |
wp network meta delete | Remove metadata |
wp network meta list | List all metadata for a network |
Basic Usage
Get the network site name
wp network meta get 1 site_name
Output:
My Global Network
Update network settings
wp network meta update 1 registration_message "Welcome to the private network. Please contact admin."
Real-World Scenarios
Checking if registration is enabled network-wide
wp network meta get 1 registration
Possible values: 'none', 'user', 'blog', 'all'
Quick Reference
wp network meta list 1 # See all settings for network 1
wp network meta delete 1 my_key # Remove custom key