src/WPametu/API/Rest/RestTemplate.php
public function wp_title($title, $sep, $location){
        if( !empty($this->title) ){
            $array = [$this->title];
            $sep = ' '.trim($sep).' ';
            if( 'right' == $location ){
                $array[] = $sep;
            }else{
                array_unshift($array, $sep);
            }
            $title = implode('', $array);
        }
        return $title;
    }
public function wp_title($title, $sep, $location){
        if( !empty($this->title) ){
            $array = [$this->title];
            $sep = ' '.trim($sep).' ';
            if( 'right' == $location ){
                $array[] = $sep;
            }else{
                array_unshift($array, $sep);
            }
            $title = implode('', $array);
        }
        return $title;
    }
public function wp_title ( $ title , $ sep , $ location ) { if ( ! empty ( $ this -> title ) ) { $ array = [ $ this -> title ] ; $ sep = ' ' . trim ( $ sep ) . ' ' ; if ( 'right' == $ location ) { $ array [ ] = $ sep ; } else { array_unshift ( $ array , $ sep ) ; } $ title = implode ( '' , $ array ) ; } return $ title ; }
Filter wp title

@param string $title
@param string $sep
@param string $location
@return string
Filter wp title