mark_fixing_migration_as_done(); } public function mark_fixing_migration_as_done() { update_option( self::FIXING_MIGRATION_STATE_KEY, self::SECOND_MIGRATION_FIX_HAS_RUN, true ); } /** * @param bool $flag */ public function skip_migration( $flag = true ) { update_option( self::MIGRATION_SKIPPED, $flag, true ); } /** * @return bool */ public function is_skipped() { return (bool) get_option( self::MIGRATION_SKIPPED ); } }