to block the ablility to hide it, you can use that :
const WIDGET_TO_SHOW = "example_dashboard_widget";
add_filter("get_user_option_metaboxhidden_dashboard", function ($result, $option, $user) {
$result = array_diff($result, [WIDGET_TO_SHOW]);
return $result;
}, 10, 3);
this is just server side. to be more clear for the user, you can use JavaScript to hide the checkbox in “screen options”.
Related Posts:
- WordPress 3.8 – Dashboard 1 Column Screen Options
- Extend WordPress 3.8 Site Activity Dashboard Widget to include more comments
- Indexes of widgets instances starts with ‘2’ in ‘wp_options’ table
- Embed iframe or html page into dashboard widget
- Storing custom dashboard widget options in wordpress
- How to Remove All Widgets from Dashboard?
- How to use control_callback when creating a widget via functions.php or plugin?
- Reorder dashboard widgets
- How do I use the control callback when creating a simple dashboard plugin
- How to Make a Custom Dashboard Widget to Display Custom Notification from Admin?
- Add a banner to the Dashboard
- Different rss feeds in a single dashboard widget
- How do I pass arguments to dashboard widget callback functions?
- Add new section to “Right Now” widget
- add widgets to dashboard for easy access for clients?
- wp_count_posts, wp_count_terms and wp_count_comments for specific user?
- Widgets not expanding on wordpress 3.3 widget dashbord
- Replace dashboard widgets with banner ad
- Custom dashboard widget search box
- Hide all Dashboard Widgets (not remove)
- wp_editor is not rendering shortcode
- Dashboard Widgets – Add Admin Page With Same Functionality
- Custom User Field in Dashboard Widget
- Create widget in dashboard displaying a custom user field?
- Fire on widgets_init only on dashboard
- RSS dashboard widget not showing visuals
- How to create a dashboard widget for one user
- How to position custom dashboard widgets on side column
- Grabbing how Many Posts by Month for a Dashboard Widget
- Dashboard Widget drawn before opening HTML tag
- Remove “Content” and “Discussion” from Right Now Dashboard Widget
- Create Dashboard Widget with form to keep team’s record
- modifying title (in dashboard) for different widget instances
- Adding a single text input field to a custom Dashboard widget
- Adding dashboard widgets to show – custom post type stats, information from other plugins
- Change number of widget columns in dashboard?
- Allow users to give a dashboard widget a custom name using ACF
- Quick Draft widget in weird place on dashboard after being re-added
- A message to clients in the dashboard widget received from another site
- Set a dashboard widget to the top?
- Array showing all values of loop instead of specific value to post
- How can I add a widget area to the top of the Dashboard?
- How to customize WordPress dashboard for different users?
- Can I use wp_widget_rss_output to show my site’s feed in the dashboard?
- WordPress version quick check?
- Registered widget is showing up collapsed in the dashboard
- can’t edit widgets after moving from subfolder to root
- Taxonomies not showing in WP Dashboard Right Now widget
- How to make custom dashboard widget to display alert in front-end?
- How to show WordPress Dashboard Widgets on Frontend?
- class WP_Widget – Different dashboard preview for custom widget
- Unable to add options on dashboard widget ?
- Custom dashboard widget – load style only for added widget
- How to add the “page” post type to Recent Activity widget displayed in admin?
- How Can I Add the “Insert From URL” Tab to a Custom 3.5 Media Uploader?
- Where is the content of widgets stored in mysql table
- Remove […] from RSS feed?
- Difference between widget form code variables
- How to create a widget that has a submit form in the front end
- How Can I Register Menus and Widgets Conditionally Based on Theme Options/Settings?
- check for shortcode in post/pages AND widgets AND template files
- Why can’t I add this feed to the RSS widget?
- Why use dynamic_sidebar() conditionally?
- Using Advanced Custom Fields in a widget
- Closest thing to an is_widget() tag?
- More flexible sidebar and widget management
- Dynamic Sidebars On Multiple Subpages
- Can I remove a widget area without editing code?
- Cannot save widgets in custom sidebars
- register widget class not written in theme
- Font awesome Icon HTML in widgets disappear on save
- How to determine the number of widgets contained in a sidebar via customizer JS
- Hide widget if user is logged in without plugin
- Toggle option in sidebar widgets
- How can hide widget title if custom widget is empty
- styling back end widget form and enabling multi widget feature
- How to show different widgets on different pages in a user friendly way
- widgetlogic and permalinks
- allow user to style widget backgound per widget
- Elementor widgets – conditional controls
- Custom tag being removed from text editor
- Programmatically add widgets to sidebars
- Programmatically add widgets to sidebars
- How to activate WordPress widgets but not display?
- WordPress archives widget causes Bing bot 404 errors
- Enqueue script only when side widget is used
- Check if widget is inside sidebar with PHP
- Widget : html 2 dimensional array doesn’t work
- Widget constructor: about $id_base and $options
- Display Login user name in Thim:login Popup widget
- WP renders HTML wrong when adding widgets
- Reposition the widget sidebar in Appearance->Widgets
- Hiding the widget meta box in the Appearance->Widget screen
- The WP_Widget class seems to run many times on a page load
- How to call theme default widget in custom template?
- Widget Logic code for different PMP membership levels
- How to display a widget available for all themes
- How to create a widget on witch a registered user can create a checklist
- Is it possible to add Custom Dashboard Widgets to Custom Admin Menu Page?
- getBlockVariations(…) is undefined in Widget and Template Part editors but not Post Editor