plugin = $plugin; $this ->set_slug( 'debug' ) ->set_label( __( 'Debug', 'ac-addon-diagnostics' ) ); $this->register(); } /** * @inheritDoc */ public function register() { add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) ); } /** * Admin scripts */ public function admin_scripts() { if ( ! $this->is_current_screen() ) { return; } wp_enqueue_style( 'ac-debug', $this->plugin->get_url() . 'assets/css/debug.css', array(), $this->plugin->get_version() ); wp_enqueue_script( 'ac-debug', $this->plugin->get_url() . 'assets/js/admin-debug.js', array(), $this->plugin->get_version(), true ); } /** * @inheritDoc */ public function display() { ?>
|
|
formatted_diagnostic_info() ) ); ?> |
|---|