regenerate-readme/profile-command.php

13 lines
271 B
PHP
Raw Normal View History

2021-04-19 12:42:05 +01:00
<?php
if ( ! class_exists( 'WP_CLI' ) ) {
return;
}
$wpcli_profile_autoloader = __DIR__ . '/vendor/autoload.php';
2021-04-19 12:42:05 +01:00
if ( file_exists( $wpcli_profile_autoloader ) ) {
require_once $wpcli_profile_autoloader;
}
WP_CLI::add_command( 'profile', 'WP_CLI\Profile\Command' );