Skip to content

Add Nebula-specific debug info to the WP Site Health accordions #2301

@chrisblakley

Description

@chrisblakley

Probably limit this to things like the options/settings that may override default or expected behavior so that we're not duplicating the entire dev metabox and Nebula warning system.

Here's how ACF does it:

/includes/class-acf-site-health.php:

add_action( 'debug_information', array( $this, 'render_tab_content' ) );

function render_tab_content($debug_info){
    $fields = array();

    $fields['license_type'] = array(
        'label' => __( 'License Type', 'acf' ),
        'value' => $license_status['name'],
    );

    $debug_info['nebula'] = array(
	'label'       => __( 'Nebula', 'nebula' ),
	'description' => __( 'This section contains debug information about your ACF configuration which can be useful to provide to support.', 'acf' ),
	'fields'      => $fields,
    );
    return $debug_info;
}

And it will show up like this:
Screenshot 2024-11-07 at 10 01 14 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Backend (Server)Related to the server-side (includes PHP, HTML, etc).Low PriorityNot of great importance, and certainly not urgent.WP Admin / Shortcode / WidgetRelated to the WordPress admin-side (like the Dashboard), or shortcodes/widgets.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions