mirror of
https://github.com/felixfoertsch/wordpress-dev-env.git
synced 2026-04-18 07:18:43 +02:00
Initial commit
This commit is contained in:
24
wordpress_plugins/debug-bar-cron/debug-bar-cron.php
Normal file
24
wordpress_plugins/debug-bar-cron/debug-bar-cron.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?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' );
|
||||
Reference in New Issue
Block a user