*/ class IS_Deactivator { /** * The code that runs during plugin deactivation. * * @since 1.0.0 */ public static function deactivate() { $old_opt = (array)get_option( 'add_search_to_menu' ); $new_opt = (array)get_option( 'ivory_search' ); $opt = array_merge( $old_opt, $new_opt ); if ( isset( $opt['dismiss_admin_notices'] ) ) { unset( $opt['dismiss_admin_notices'] ); update_option( 'ivory_search', $opt ); } } }