Skip to main content

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

CommandAction
wp network meta addAdd a new metadata entry
wp network meta getRetrieve meatdata
wp network meta updateUpdate existing metadata
wp network meta deleteRemove metadata
wp network meta listList 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