We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c40f0e9 + c2be57c commit abded98Copy full SHA for abded98
entity-command.php
@@ -54,3 +54,7 @@
54
);
55
56
WP_CLI::add_command( 'user term', 'User_Term_Command' );
57
+
58
+if ( class_exists( 'WP_CLI\Dispatcher\CommandNamespace' ) ) {
59
+ WP_CLI::add_command( 'network', 'Network_Namespace' );
60
+}
src/Network_Namespace.php
@@ -0,0 +1,18 @@
1
+<?php
2
3
+use WP_CLI\Dispatcher\CommandNamespace;
4
5
+/**
6
+ * Perform network-wide operations.
7
+ *
8
+ * ## EXAMPLES
9
10
+ * # Get a list of super-admins
11
+ * $ wp network meta get 1 site_admins
12
+ * array (
13
+ * 0 => 'supervisor',
14
+ * )
15
+ */
16
+class Network_Namespace extends CommandNamespace {
17
18
0 commit comments