[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/plugins/akismet/ -> class.akismet-cli.php (summary)

(no description)

File Size: 186 lines (5 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Akismet_CLI:: (3 methods):
  check()
  recheck_queue()
  stats()


Class: Akismet_CLI  - X-Ref

Filter spam comments.

check( $args, $assoc_args )   X-Ref
Checks one or more comments against the Akismet API.

## OPTIONS
<comment_id>...
: The ID(s) of the comment(s) to check.

[--noaction]
: Don't change the status of the comment. Just report what Akismet thinks it is.

## EXAMPLES

wp akismet check 12345


recheck_queue()   X-Ref
Recheck all comments in the Pending queue.

## EXAMPLES

wp akismet recheck_queue


stats( $args, $assoc_args )   X-Ref
Fetches stats from the Akismet API.

## OPTIONS

[<interval>]
: The time period for which to retrieve stats.
---
default: all
options:
- days
- months
- all
---

[--format=<format>]
: Allows overriding the output of the command when listing connections.
---
default: table
options:
- table
- json
- csv
- yaml
- count
---

[--summary]
: When set, will display a summary of the stats.

## EXAMPLES

wp akismet stats
wp akismet stats all
wp akismet stats days
wp akismet stats months
wp akismet stats all --summary



Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref