src/Ultra/Router/Route.php
private static function search($postType, array $details)
    {
        $s = isset($_GET['post_type']) ? $_GET['post_type'] : false;

        if($s === $postType && is_search())
        {
            self::loadController($details);
            exit;
        }
    }
private static function search($postType, array $details)
    {
        $s = isset($_GET['post_type']) ? $_GET['post_type'] : false;

        if($s === $postType && is_search())
        {
            self::loadController($details);
            exit;
        }
    }
private static function search ( $ postType , array $ details ) { $ s = isset ( $ _GET [ 'post_type' ] ) ? $ _GET [ 'post_type' ] : false ; if ( $ s === $ postType && is_search ( ) ) { self :: loadController ( $ details ) ; exit ; } }
Check if we are loading a search page.

@param string $postType Optional. Look for a specific post type
@param array $details Settings for the route
Check if we are loading a search page .