Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chrisblakley opened this issue Nov 7, 2024 · 0 comments
Open
Labels
Backend (Server) Related to the server-side (includes PHP, HTML, etc). Low Priority Not of great importance, and certainly not urgent. WP Admin / Shortcode / Widget Related to the WordPress admin-side (like the Dashboard), or shortcodes/widgets.
Milestone

Comments

@chrisblakley
Copy link
Owner

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

@chrisblakley chrisblakley added Low Priority Not of great importance, and certainly not urgent. WP Admin / Shortcode / Widget Related to the WordPress admin-side (like the Dashboard), or shortcodes/widgets. Backend (Server) Related to the server-side (includes PHP, HTML, etc). labels Nov 7, 2024
@chrisblakley chrisblakley added this to the 13.0 Bubble milestone Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend (Server) Related to the server-side (includes PHP, HTML, etc). Low Priority Not of great importance, and certainly not urgent. WP Admin / Shortcode / Widget Related to the WordPress admin-side (like the Dashboard), or shortcodes/widgets.
Projects
None yet
Development

No branches or pull requests

1 participant