Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-cli-cron-control-offload
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
WP Plugins
wp-cli-cron-control-offload
Commits
f0fa8b19
Commit
f0fa8b19
authored
7 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
More scaffolding
parent
4f375bce
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
includes/run.php
+17
-0
17 additions, 0 deletions
includes/run.php
includes/schedule.php
+4
-0
4 additions, 0 deletions
includes/schedule.php
wp-cli-via-cron-control.php
+8
-1
8 additions, 1 deletion
wp-cli-via-cron-control.php
with
29 additions
and
1 deletion
includes/run.php
0 → 100644
+
17
−
0
View file @
f0fa8b19
<?php
namespace
Automattic\WP\WP_CLI_Cron_Control_Offload
;
if
(
!
defined
(
'WP_CLI'
)
||
!
\WP_CLI
)
{
return
;
}
use
WP_CLI
;
/**
*
*/
function
run_event
(
$args
)
{
return
false
;
}
add_action
(
ACTION
,
__NAMESPACE__
.
'\run_event'
);
This diff is collapsed.
Click to expand it.
includes/schedule.php
0 → 100644
+
4
−
0
View file @
f0fa8b19
<?php
namespace
Automattic\WP\WP_CLI_Cron_Control_Offload
;
This diff is collapsed.
Click to expand it.
wp-cli-via-cron-control.php
+
8
−
1
View file @
f0fa8b19
...
...
@@ -9,5 +9,12 @@
* Domain Path: /languages
* Version: 0.1.0
*
* @package WP_CLI_
via_
Cron_Control
* @package WP_CLI_Cron_Control
_Offload
*/
namespace
Automattic\WP\WP_CLI_Cron_Control_Offload
;
const
ACTION
=
'wp_cli_cron_control_offload'
;
require_once
__DIR__
.
'/includes/schedule.php'
;
require_once
__DIR__
.
'/includes/run.php'
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment