Remove dashboard widget
From WordPress Codex:
<?php remove_meta_box( $id, $page, $context ); ?>
Removes a meta box or any other element from a particular post edit screen of a given post type. It can be also used to remove a widget from the dashboard screen.
- $id
- (string) (required) Value of the id attribute of the HTML element to remove. Some of the available id values are given below:
- ‘authordiv’ – Author metabox
- ‘categorydiv’ – Categories metabox.
- ‘commentstatusdiv’ – Comments status metabox (discussion)
- ‘commentsdiv’ – Comments metabox
- ‘formatdiv’ – Formats metabox
- ‘pageparentdiv’ – Attributes metabox
- ‘postcustom’ – Custom fields metabox
- ‘postexcerpt’ – Excerpt metabox
- ‘postimagediv’ – Featured image metabox
- ‘revisionsdiv’ – Revisions metabox
- ‘slugdiv’ – Slug metabox
- ‘submitdiv’ – Date, status, and update/save metabox
- ‘tagsdiv-post_tag’ – Tags metabox
- ‘tagsdiv-{$tax-name}’ – Custom taxonomies metabox
- ‘{$tax-name}div’ – Hierarchical custom taxonomies metabox
- ‘trackbacksdiv’ – Trackbacks metabox
- …
- Default: None
- $page
- (string) (required) Type of the screen to remove the meta box from, such as:
- ‘post’
- ‘page’
- ‘attachment’
- ‘link’
- ‘dashboard’
- or any registered custom post type, e.g. ‘my-product’
- Default: None
- $context
- (string) (required) ‘normal’, ‘advanced’, or ‘side’.
- Default: None
The context within the screen where the boxes should display. Available contexts vary from screen to screen. Post edit screen contexts include ‘normal’, ‘side’, and ‘advanced’. Comments screen contexts include ‘normal’ and ‘side’. Menus meta boxes (accordion sections) all use the ‘side’ context. Global default is ‘advanced’.