run:R W Run
DIR
2026-04-15 19:02:18
R W Run
DIR
2026-04-15 19:02:18
R W Run
DIR
2026-04-15 19:02:18
R W Run
761 By
2026-04-15 19:02:18
R W Run
3.3 KB
2026-04-15 19:02:18
R W Run
25.47 KB
2026-04-15 19:02:18
R W Run
10.69 KB
2026-04-15 19:02:18
R W Run
5.14 KB
2026-04-15 19:02:18
R W Run
16.87 KB
2026-04-15 19:02:18
R W Run
1.65 KB
2026-04-15 19:02:18
R W Run
6.16 KB
2026-04-15 19:02:18
R W Run
4.88 KB
2026-04-15 19:02:18
R W Run
1.31 KB
2026-04-15 19:02:18
R W Run
1.4 KB
2026-04-15 19:02:18
R W Run
15.24 KB
2026-04-15 19:02:18
R W Run
2.84 KB
2026-04-15 19:02:18
R W Run
5.5 KB
2026-04-15 19:02:18
R W Run
2 KB
2026-04-15 19:02:18
R W Run
3.28 KB
2026-04-15 19:02:18
R W Run
3.79 KB
2026-04-15 19:02:18
R W Run
2.1 KB
2026-04-15 19:02:18
R W Run
791 By
2026-04-15 19:02:18
R W Run
15.03 KB
2026-04-15 19:02:18
R W Run
6.5 KB
2026-04-15 19:02:18
R W Run
1.5 KB
2026-04-15 19:02:18
R W Run
8.61 KB
2026-04-15 19:02:18
R W Run
27.78 KB
2026-04-15 19:02:18
R W Run
2.03 KB
2026-04-15 19:02:18
R W Run
7.79 KB
2026-04-15 19:02:18
R W Run
9.9 KB
2026-04-15 19:02:18
R W Run
1.81 KB
2026-04-15 19:02:18
R W Run
7.42 KB
2026-04-15 19:02:18
R W Run
10.74 KB
2026-04-15 19:02:18
R W Run
1.28 KB
2026-04-15 19:02:18
R W Run
8.11 KB
2026-04-15 19:02:18
R W Run
1.79 KB
2026-04-15 19:02:18
R W Run
2.77 KB
2026-04-15 19:02:18
R W Run
780 By
2026-04-15 19:02:18
R W Run
5.37 KB
2026-04-15 19:02:18
R W Run
2.91 KB
2026-04-15 19:02:18
R W Run
794 By
2026-04-15 19:02:18
R W Run
3.69 KB
2026-04-15 19:02:18
R W Run
2.8 KB
2026-04-15 19:02:18
R W Run
37.06 KB
2026-04-15 19:02:18
R W Run
486 By
2026-04-15 19:02:18
R W Run
error_log
📄class-cli.php
1<?php
2
3namespace WPaaS;
4
5use \WP_CLI;
6
7if ( ! defined( 'ABSPATH' ) ) {
8
9 exit;
10
11}
12
13final class CLI {
14
15 /**
16 * Class constructor.
17 */
18 public function __construct() {
19
20 $commands = [
21 'cache' => '\WPaaS\CLI\Cache',
22 'hmt' => '\WPaaS\CLI\HMT',
23 ];
24
25 foreach ( $commands as $command => $class ) {
26
27 unset( $commands[ $command ] );
28
29 $commands[ Plugin::cli_command( $command, [], false ) ] = $class;
30
31 if ( 'wpaas' !== Plugin::cli_base_command() ) {
32
33 $commands[ "wpaas {$command}" ] = $class;
34
35 }
36
37 }
38
39 // Custom subcommand for a default command
40 $commands['cron event wpaas'] = '\WPaaS\CLI\Cron_Event';
41
42 /**
43 * Filter the default custom WP-CLI commands.
44 *
45 * @since 2.0.0
46 *
47 * @var array
48 */
49 $commands = (array) apply_filters( 'wpaas_cli_commands', $commands );
50
51 $this->register( $commands );
52
53 }
54
55 /**
56 * Register custom WP-CLI commands.
57 *
58 * @param array $commands
59 *
60 * @return array|bool
61 */
62 private function register( array $commands ) {
63
64 if ( ! $commands || ! is_array( $commands ) ) {
65
66 return false;
67
68 }
69
70 $registered = [];
71
72 foreach ( $commands as $command => $class ) {
73
74 if ( ! class_exists( $class ) ) {
75
76 continue;
77
78 }
79
80 WP_CLI::add_command( $command, $class );
81
82 $registered[ $command ] = $class;
83
84 }
85
86 return ( $registered ) ? $registered : false;
87
88 }
89
90}
91