mirror of
https://github.com/felixfoertsch/wordpress-dev-env.git
synced 2026-04-18 23:38:37 +02:00
20 lines
483 B
PHP
20 lines
483 B
PHP
<?php
|
|
|
|
class Log_Viewer_DebugBar_Integration
|
|
{
|
|
/**
|
|
* Check and integrate to Debug-Bar Plugin as Panel
|
|
*
|
|
* @since 14.04.21
|
|
*/
|
|
public static function integrate_debugbar( $panels ) {
|
|
require_once plugin_dir_path( __DIR__ ) . '/admin/class-log-viewer-admin.php';
|
|
require_once plugin_dir_path( __DIR__ ) . '/includes/class-dbpanel.php';
|
|
$myPanel = new Log_Viewer_DebugBar_Panel( plugin_dir_path( __DIR__ ) . '/views' );
|
|
|
|
$panels[] = $myPanel;
|
|
|
|
return $panels;
|
|
}
|
|
}
|