'Plugin Name', 'PluginURI' => 'Plugin URI', 'Version' => 'Version', 'Description' => 'Description', 'Author' => 'Author', 'AuthorURI' => 'Author URI', 'TextDomain' => 'Text Domain', 'DomainPath' => 'Domain Path', 'Network' => 'Network', 'RequiresWP' => 'Requires at least', 'RequiresPHP' => 'Requires PHP', 'UpdateURI' => 'Update URI', ); } return \get_file_data( __FILE__, $default_headers, 'plugin' ); } /** * Plugin Version Number used for caching. * * @deprecated 4.2.0 Use constant ACTIVITYPUB_PLUGIN_VERSION directly. */ function get_plugin_version() { _deprecated_function( __FUNCTION__, '4.2.0', 'ACTIVITYPUB_PLUGIN_VERSION' ); return ACTIVITYPUB_PLUGIN_VERSION; } // Check for CLI env, to add the CLI commands. if ( defined( 'WP_CLI' ) && WP_CLI ) { WP_CLI::add_command( 'activitypub', '\Activitypub\Cli', array( 'shortdesc' => 'ActivityPub related commands to manage plugin functionality and the federation of posts and comments.', ) ); }