Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
40bde347
Verified
Commit
40bde347
authored
Dec 13, 2016
by
Erick Hitter
Browse files
Starting point for CLI commands to deal with the REST API
parent
6d9cbe0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/wp-cli.php
View file @
40bde347
...
...
@@ -39,3 +39,4 @@ require __DIR__ . '/wp-cli/class-cache.php';
require
__DIR__
.
'/wp-cli/class-events.php'
;
require
__DIR__
.
'/wp-cli/class-lock.php'
;
require
__DIR__
.
'/wp-cli/class-one-time-fixers.php'
;
require
__DIR__
.
'/wp-cli/class-rest-api.php'
;
includes/wp-cli/class-rest-api.php
0 → 100644
View file @
40bde347
<?php
namespace
Automattic\WP\Cron_Control\CLI
;
/**
* Make requests to Cron Control's REST API
*/
class
REST_API
extends
\
WP_CLI_Command
{
/**
* Retrieve the current event queue
*
* @subcommand get-queue
*/
public
function
get_queue
(
$args
,
$assoc_args
)
{
\
WP_CLI
::
warning
(
'Queue goes here :P'
);
}
}
\
WP_CLI
::
add_command
(
'cron-control rest-api'
,
'Automattic\WP\Cron_Control\CLI\REST_API'
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment