23 lines
632 B
PHP
23 lines
632 B
PHP
<?php
|
|
|
|
if ( ! class_exists( 'WP_CLI' ) ) {
|
|
return;
|
|
}
|
|
|
|
$wpcli_embed_autoloader = __DIR__ . '/vendor/autoload.php';
|
|
|
|
if ( file_exists( $wpcli_embed_autoloader ) ) {
|
|
require_once $wpcli_embed_autoloader;
|
|
}
|
|
|
|
if ( class_exists( 'WP_CLI\Dispatcher\CommandNamespace' ) ) {
|
|
WP_CLI::add_command( 'embed', '\WP_CLI\Embeds\Embeds_Namespace' );
|
|
}
|
|
|
|
WP_CLI::add_command( 'embed fetch', '\WP_CLI\Embeds\Fetch_Command' );
|
|
|
|
WP_CLI::add_command( 'embed provider', '\WP_CLI\Embeds\Provider_Command' );
|
|
|
|
WP_CLI::add_command( 'embed handler', '\WP_CLI\Embeds\Handler_Command' );
|
|
|
|
WP_CLI::add_command( 'embed cache', '\WP_CLI\Embeds\Cache_Command' );
|