*/ class Wp_Hide_Backed_Notices_Activator { /** * Activate the plugin. * * Sets default options if they don't exist, ensuring a clean array structure. * * @since 1.0.0 */ public static function activate() { $default_settings = array( 'Hide_Notices' => 'Hide Notices', ); if ( false == get_option( 'manage_warnings_notice' ) ) { update_option( 'manage_warnings_notice', $default_settings ); } } }