Pingbacks_Command
Preview or permanently delete pingbacks and trackbacks.
Namespace: WebberZone\AutoClose\CLI
Since: 3.2.0
Source: includes/cli/class-pingbacks-command.php line 21
Extends: Base_Command
Methods
__construct()
Constructor.
Since: 3.2.0
Line: 37
public function __construct( $comments = ... );
| Type | Name | Description |
|---|---|---|
Comments|null |
$comments |
Comments processor. |
preview()
Preview pingback/trackback deletion.
OPTIONS
[
[–post-ids=
[–sample=
[–format=
EXAMPLES
wp autoclose pingbacks preview
wp autoclose pingbacks preview 1234 --format=json
Since: 3.2.0
Line: 68
public function preview( $args, $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array |
$args |
Positional arguments. |
array |
$assoc_args |
Associative arguments. |
Returns: void
delete()
Permanently delete pingbacks and trackbacks.
OPTIONS
[
[–post-ids=
[–dry-run] : Preview the deletion without changing content.
[–sample=
[–yes] : Skip the confirmation prompt.
[–format=
EXAMPLES
wp autoclose pingbacks delete
wp autoclose pingbacks delete 1234 --yes
wp autoclose pingbacks delete --dry-run --format=json
Since: 3.2.0
Line: 106
public function delete( $args, $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array |
$args |
Positional arguments. |
array |
$assoc_args |
Associative arguments. |
Returns: void