OSDN Git Service

add site meta commands
authorTomasz Ratajczak <tomasz.ratajczak@espeo.pl>
Fri, 7 Jun 2013 14:26:54 +0000 (16:26 +0200)
committerscribu <mail@scribu.net>
Sat, 15 Jun 2013 09:29:23 +0000 (12:29 +0300)
php/commands/site-meta.php [new file with mode: 0644]

diff --git a/php/commands/site-meta.php b/php/commands/site-meta.php
new file mode 100644 (file)
index 0000000..3642167
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+
+/**
+ * Manage site custom fields.
+ *
+ * @package wp-cli
+ */
+class Site_Meta_Command extends \WP_CLI\CommandWithMeta {
+       protected $meta_type = 'site';
+}
+
+WP_CLI::add_command( 'site-meta', 'Site_Meta_Command' );
+