Tables_Indexes_Command
Custom tables indexes management commands for CRP.
Namespace: WebberZone\Contextual_Related_Posts\Pro\CLI
Since: 4.2.0
Source: includes/cli/class-tables-indexes-command.php line 23
Extends: Base_Command
Methods
__construct()
Constructor.
Since: 4.2.0
Line: 46
public function __construct( );
create()
Create FULLTEXT indexes for custom tables.
OPTIONS
[—network] : Create indexes for all sites in a multisite network.
[—dry-run] : Show what would be created without making changes.
[—verbose] : Show detailed output.
EXAMPLES
wp crp tables indexes create
wp crp tables indexes create --network
wp crp tables indexes create --dry-run
wp crp tables indexes create --verbose
Line: 75
public function create( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | Command arguments. |
array | $assoc_args | Command associative arguments. |
Returns: void
delete()
Delete FULLTEXT indexes from custom tables.
OPTIONS
[—network] : Delete indexes for all sites in a multisite network.
[—dry-run] : Show what would be deleted without making changes.
[—force] : Force deletion without confirmation.
[—verbose] : Show detailed output.
EXAMPLES
wp crp tables indexes delete
wp crp tables indexes delete --network
wp crp tables indexes delete --dry-run
wp crp tables indexes delete --force
wp crp tables indexes delete --verbose
Line: 124
public function delete( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | Command arguments. |
array | $assoc_args | Command associative arguments. |
Returns: void
recreate()
Recreate FULLTEXT indexes for custom tables.
OPTIONS
[—network] : Recreate indexes for all sites in a multisite network.
[—dry-run] : Show what would be recreated without making changes.
[—verbose] : Show detailed output.
EXAMPLES
wp crp tables indexes recreate
wp crp tables indexes recreate --network
wp crp tables indexes recreate --dry-run
wp crp tables indexes recreate --verbose
Line: 174
public function recreate( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | Command arguments. |
array | $assoc_args | Command associative arguments. |
Returns: void
status()
Check status of FULLTEXT indexes for custom tables.
OPTIONS
[—format=
[—network] : Check indexes for all sites in a multisite network.
[—verbose] : Show detailed output.
EXAMPLES
wp crp tables indexes status
wp crp tables indexes status --format=json
wp crp tables indexes status --network
wp crp tables indexes status --verbose
Line: 219
public function status( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | Command arguments. |
array | $assoc_args | Command associative arguments. |
Returns: void