Recent

Pingbacks_Commandclass

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. Omit to include all pingbacks and trackbacks.

[–post-ids=] : Comma-separated post IDs.

[–sample=] : Maximum sample rows. Default: 10. Maximum: 100.

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

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. Omit to delete all pingbacks and trackbacks.

[–post-ids=] : Comma-separated post IDs.

[–dry-run] : Preview the deletion without changing content.

[–sample=] : Maximum sample rows in dry-run output. Default: 10. Maximum: 100.

[–yes] : Skip the confirmation prompt.

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

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