| @@ -28,4 +28,11 @@ | ||
| 28 | 28 | // If uninstall not called from WordPress, then exit. |
| 29 | 29 | if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { |
| 30 | 30 | exit; |
| 31 | 31 | } |
| 32 | + | |
| 33 | +$option_name = 'essential_widgets_options'; // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound -- File-scope uninstall variable used immediately. | |
| 34 | + | |
| 35 | +delete_option( $option_name ); | |
| 36 | + | |
| 37 | +// For site options in Multisite. | |
| 38 | +delete_site_option( $option_name ); | |