Inpsyde\MultilingualPress\Common\ConditionalAwareRequest::post_type PHP Метод

post_type() публичный Метод

Returns the (first) post type of the current request.
С версии: 3.0.0
public post_type ( ) : string
Результат string The (first) post type, or empty string if not applicable.
    public function post_type()
    {
        $post_type = (array) get_query_var('post_type');
        return (string) reset($post_type);
    }