Recent

CLI_Manager class Pro only

CLI_Manager

CLI Manager class for registering WP-CLI commands.

Namespace: WebberZone\Better_Search\Pro\CLI
Since: 4.3.0
Source: includes/cli/class-cli-manager.php line 21

Methods

__construct()

Constructor.

Since: 4.3.0
Line: 36

public function __construct(  );

register_commands()

Register all WP-CLI commands.

Since: 4.3.0
Line: 54

public function register_commands(  ): void;

Returns: void

get_command()

Get command instance by name.

Since: 4.3.0
Line: 68

public function get_command( string $command_name ): ?Base_Command;
TypeNameDescription
string$command_nameCommand name.

Returns: ?Base_Command — Command instance or null if not found.

get_commands()

Get all registered commands.

Since: 4.3.0
Line: 79

public function get_commands(  ): array;

Returns: array — Array of command instances.