PHP Интерфейс Inpsyde\MultilingualPress\Common\Request

С версии: 3.0.0
Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
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.

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

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.