Admin dashboard notes and help tab content


// dashboard notes
function add_custom_dashboard_widgets() {
wp_add_dashboard_widget(
'wpexplorer_dashboard_widget', // Widget slug.
'Admin notes', // Title.
'custom_dashboard_widget_content' // Display function.
);
}
add_action( 'wp_dashboard_setup', 'add_custom_dashboard_widgets' );
function custom_dashboard_widget_content() {
echo "

Hello, please remember to stay away from the plugins menu.

Here are some important notes:

  • Datatables The data table ID must be set to the same as the product ID it is linked to.

If you have any need of assistance, please don't hesitate to contact us under:

  • https://www.d2creative.co.uk/
  • 01392 877116

";
}
// add help tab content
function setup_help_tab() {
$screen = get_current_screen();
if ( 'post' == $screen->post_type ) {
get_current_screen()->add_help_tab( array(
'id' => 'post',
'title' => ( 'How to Publish a Blog Post' ),
'content' => '

To publish a blog post, please follow the steps below.

  • Locate big, blue Publish button.
  • Click it.
  • Well done.

',
) );
}
}
// add more here
add_action( 'admin_head', 'setup_help_tab' );