Files
wordpress-dev-env/wordpress_plugins/debug-bar-cron/debug-bar-cron.php
Felix Förtsch 648ded8896 Initial commit
2020-10-20 14:39:50 +02:00

24 lines
623 B
PHP

<?php
/*
Plugin Name: Debug Bar Cron
Plugin URI: http://github.com/tollmanz/
Description: Adds information about WP scheduled events to Debug Bar.
Author: Zack Tollman, Helen Hou-Sandi
Version: 0.1.2
Author URI: http://github.com/tollmanz
*/
/**
* Adds panel, as defined in the included class, to Debug Bar.
*
* @param $panels array
* @return array
*/
function zt_add_debug_bar_cron_panel( $panels ) {
if ( ! class_exists( 'ZT_Debug_Bar_Cron' ) ) {
include ( 'class-debug-bar-cron.php' );
$panels[] = new ZT_Debug_Bar_Cron();
}
return $panels;
}
add_filter( 'debug_bar_panels', 'zt_add_debug_bar_cron_panel' );