src/Model.php
public static function without_global_scopes( array $scopes ) {

		$query = static::query_with_no_global_scopes();

		foreach ( static::get_global_scopes() as $id => $scope ) {

			if ( in_array( $id, $scopes ) ) {
				continue;
			}

			if ( $scope instanceof Scope ) {
				$scope->apply( $query );
			} else {
				$scope( $query );
			}
		}

		return $query;
	}
public static function without_global_scopes( array $scopes ) {

		$query = static::query_with_no_global_scopes();

		foreach ( static::get_global_scopes() as $id => $scope ) {

			if ( in_array( $id, $scopes ) ) {
				continue;
			}

			if ( $scope instanceof Scope ) {
				$scope->apply( $query );
			} else {
				$scope( $query );
			}
		}

		return $query;
	}
Create a new query builder without certain global scopes applied.

@since 2.0

@param array $scopes

@return FluentQuery