Initial commit, dashboard settings page seems to work fine.

This commit is contained in:
2021-05-31 15:03:52 -06:00
commit 5ce0217861
30 changed files with 825 additions and 0 deletions

View File

@ -0,0 +1,44 @@
<?php
namespace PluginNamespace;
use WP_CLI;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
class NmspCli {
/**
* Class constructor. Can add commands here.
*
* @since 1.0.0
*
* @return void
*/
public function __construct() {
WP_CLI::add_command(
'nmsp-plugin do',
array( $this, 'do_the_thing' ),
array(
'shortdesc' => 'The short description.',
'longdesc' => "This is the super long description that will go on and on my friend. Some people started writing it not knowing what it was, and we'll continue writing it forever just because this is the description that never ends...",
),
);
}
/**
* A sample method where something is done.
*
* @since 1.0.0
*
* @return void
*/
public function do_the_thing(): void {
//
}
}
new NmspCli();