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

21 lines
429 B
PHP

<?php
if ( ! defined( 'ABSPATH' ) )
die();
class Debug_Bar_Slow_Actions_Panel extends Debug_Bar_Panel {
private $tab_name;
private $tab;
private $callback;
public function set_callback( $callback ) {
$this->callback = $callback;
}
public function prerender() {
$this->set_visible( true );
}
public function render() {
echo call_user_func( $this->callback );
}
}