Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/blocksy-companion-pro/framework/cli.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 +
3 + namespace Blocksy;
4 +
5 + /*
6 + add_action('blocksy:customizer:load:before', function () {
7 + $_REQUEST['wp_customize'] = 'on';
8 + _wp_customize_include();
9 +
10 + global $wp_customize;
11 +
12 + $wp_customize->wp_loaded();
13 + });
14 + */
15 +
16 + /**
17 + * Manages Blocksy theme extensions, tools, license activation, and starter site installation.
18 + *
19 + * ## EXAMPLES
20 + *
21 + * # List all available extensions
22 + * $ wp blocksy extension list
23 + *
24 + * # Activate an extension
25 + * $ wp blocksy extension activate custom-fonts
26 + *
27 + * # Deactivate an extension
28 + * $ wp blocksy extension deactivate custom-fonts
29 + *
30 + * # List all available tools
31 + * $ wp blocksy tool list
32 + *
33 + * # Run a specific tool
34 + * $ wp blocksy tool run tool-name
35 + *
36 + * # List all available demos
37 + * $ wp blocksy demo list
38 + *
39 + * # Install a demo
40 + * $ wp blocksy demo install demo-name
41 + *
42 + * # Activate license
43 + * $ wp blocksy license activate your-license-key
44 + *
45 + * # Move all widgets to inactive area
46 + * $ wp blocksy widgets drop
47 + */
48 + class Cli {
49 + public function __construct() {
50 + \WP_CLI::add_command('blocksy', $this);
51 +
52 + new DemoCli();
53 + new ToolCli();
54 + new LicenseCli();
55 + new ExtensionCli();
56 + new WidgetsCli();
57 + }
58 + }
59 +
60 +