Skip to content
Snippets Groups Projects
Commit f7c9097f authored by Erick Hitter's avatar Erick Hitter
Browse files

Further scaffolding

parent 5aa1177f
Branches
No related tags found
Loading
......@@ -2,16 +2,15 @@
namespace Automattic\WP\WP_CLI_Cron_Control_Offload;
if ( ! defined( 'WP_CLI' ) || ! \WP_CLI ) {
return;
}
use WP_CLI;
/**
*
*/
function run_event( $args ) {
return false;
if ( ! defined( 'WP_CLI' ) || ! \WP_CLI ) {
trigger_error( 'Attempted to run event without WP-CLI loaded. ' . compact( $args ), E_USER_WARNING );
return false;
}
// TODO: run event, sending output to error log
}
add_action( ACTION, __NAMESPACE__ . '\run_event' );
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment