Related_Command
Related posts command for CRP.
Namespace: WebberZone\Contextual_Related_Posts\Pro\CLI
Since: 4.2.0
Source: includes/cli/class-related-command.php line 24
Extends: Base_Command
Methods
__invoke()
Show related posts for a specific post.
OPTIONS
[—limit=
[—url=
[—blog-id=
[—format=
EXAMPLES
wp crp related 123
wp crp related 123 --limit=5
wp crp related 123 --format=json
wp crp related 123 --url=http://example.com/site2
Line: 57
public function __invoke( array $args, array $assoc_args ): void;
| Type | Name | Description |
|---|---|---|
array | $args | Command arguments. |
array | $assoc_args | Command associative arguments. |
Returns: void