mirror of
https://github.com/felixfoertsch/wordpress-dev-env.git
synced 2026-04-19 07:48:38 +02:00
Initial commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user