Looking to register a custom dashboard meta box? All you may need is to register a dashboard widget using the wp_dashboard_setup action.
1 answers
1
Register a custom dashboard meta box
In your WordPress theme’s functions.php file, you can copy and paste the code below to register your custom meta box inside your WordPress dashboard.
You should edit the content inside the $output variable accordingly.
function custom_dashboard_widget_data() { $output = '<p>'; $output .= 'Your HTML content'; $output .= '</p>'; echo $output; } add_action( 'wp_dashboard_setup', 'custom_dashboard_widget_data' );
— Support WizardAnswer 1