PHP Класс Inpsyde\MultilingualPress\Common\ConditionalAwareRequest

С версии: 3.0.0
Наследование: implements Inpsyde\MultilingualPress\Common\Request
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( ) Constructor. Sets up the properties.
post_type ( ) : string Returns the (first) post type of the current request.
queried_object_id ( ) : integer Returns the ID of the queried object.
type ( ) : string Returns the type of the current request.

Приватные методы

Метод Описание
is_page_for_posts ( ) : boolean
is_singular ( ) : boolean
is_term_archive ( ) : boolean

Описание методов

__construct() публичный метод

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( )

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.

queried_object_id() публичный метод

For term archives, this is the term taxonomy ID (not the term ID).
С версии: 3.0.0
public queried_object_id ( ) : integer
Результат integer The ID of the queried object.

type() публичный метод

Returns the type of the current request.
С версии: 3.0.0
public type ( ) : string
Результат string Request type, or empty string on failure.