mirror of
https://github.com/felixfoertsch/wordpress-dev-env.git
synced 2026-04-16 14:28:40 +02:00
24 lines
623 B
PHP
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' ); |