Recent

Cron_Commandclass

Cron_Command

Inspect and repair AutoClose’s scheduled event.

Namespace: WebberZone\AutoClose\CLI
Since: 3.2.0
Source: includes/cli/class-cron-command.php line 21 Extends: Base_Command

Methods

repair()

Repair the scheduled maintenance event.

This only repairs the event when scheduled maintenance is enabled in the current site’s settings. It does not enable or disable the feature.

OPTIONS

[–force] : Reschedule the event even when it is already registered.

[–format=] : Output format. Options: table, json, csv. Default: table.

EXAMPLES

wp autoclose cron repair
wp autoclose cron repair --force --format=json

Since: 3.2.0
Line: 47

public function repair( $args, $assoc_args ): void;
Type Name Description
array $args Positional arguments.
array $assoc_args Associative arguments.

Returns: void