PluginProbe
ActivityPub / 7.9.1
ActivityPub v7.9.1
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
activitypub / includes / cli / class-command.php

class-command.php in ActivityPub 7.9.1, at includes/cli/class-command.php

34 lines 720 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Base CLI Command.
4 *
5 * @package Activitypub
6 */
7
8 namespace Activitypub\Cli;
9
10 /**
11 * Manage ActivityPub plugin functionality and federation.
12 *
13 * @package Activitypub
14 */
15 class Command extends \WP_CLI_Command {
16
17 /**
18 * Display the ActivityPub plugin version.
19 *
20 * ## EXAMPLES
21 *
22 * $ wp activitypub version
23 * ActivityPub 7.9.0
24 *
25 * @subcommand version
26 *
27 * @param array $args The positional arguments (unused).
28 * @param array $assoc_args The associative arguments (unused).
29 */
30 public function version( $args, $assoc_args ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
31 \WP_CLI::line( 'ActivityPub ' . ACTIVITYPUB_PLUGIN_VERSION );
32 }
33 }
34