Attention !

Cet article contient du code PHP et est destiné aux développeurs. Nous fournissons ce code à titre de courtoisie, mais nous n'offrons pas de support pour les personnalisations de code ou le développement tiers.

Pour obtenir de l'aide supplémentaire, veuillez consulter le tutoriel de WPBeginner sur l'ajout de code personnalisé.

Ignorer

Description

The wpforms_admin_dashboardwidget filter is used to hide the WPForms dashboard widget on the WordPress dashboard page.

using the wpforms_admin_dashboardwidget filter you can disable this widget from appearing on your WordPress admin area

Paramètres

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

Source

wpforms/src/Pro/Admin/DashboardWidget.php

Plus d'informations

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

Exemple

/*
 * Hide the dashboard widget
 *
 * @link https://wpforms.com/developers/wpforms_admin_dashboardwidget/
 *
 * @param  bool $show Default is true.
 * @return bool
 */

add_filter( 'wpforms_admin_dashboardwidget', '__return_false' );

Article Reference: How to Disable WPForms Dashboard Widget