Description

Filter used to hide the WPForms dashboard widget on the WordPress dashboard page.

Parameters

$show
(bool) (Required) Determines whether the dashboard widget will display, default is true (to show)

Source

wpforms/src/Pro/Admin/DashboardWidget.php

More Information

The wpforms_admin_dashboardwidget filter can be used to hide the WPForms Dashboard Widget that appears on the WordPress main dashboard page.

Example

/*
 * Hide the dashboard widget
 *
 * @link https://wpforms.com/developers/wpforms_admin_dashboardwidget/
 *
 * @param  bool $show Default is false.
 *
 * @return bool
 */
add_filter( 'wpforms_admin_dashboardwidget', '__return_true' );

Snippet Reference: How to Disable WPForms Dashboard Widget