src/Route/Route.php
protected function parseCondition(string $condition): string
    {
        $conditions = $this->getConditions();

        foreach ($conditions as $signature => $conds) {
            $conds = is_array($conds) ? $conds : [$conds];

            if (in_array($condition, $conds, true)) {
                return $signature;
            }
        }

        return '';
    }
protected function parseCondition(string $condition): string
    {
        $conditions = $this->getConditions();

        foreach ($conditions as $signature => $conds) {
            $conds = is_array($conds) ? $conds : [$conds];

            if (in_array($condition, $conds, true)) {
                return $signature;
            }
        }

        return '';
    }
protected function parseCondition ( string $ condition ) : string { $ conditions = $ this -> getConditions ( ) ; foreach ( $ conditions as $ signature => $ conds ) { $ conds = is_array ( $ conds ) ? $ conds : [ $ conds ] ; if ( in_array ( $ condition , $ conds , true ) ) { return $ signature ; } } return '' ; }
Parse the route condition based on global list of conditions.
Return the WordPress conditional function.

@param string $condition

@return string
Parse the route condition based on global list of conditions . Return the WordPress conditional function .