PHP 클래스 Inpsyde\MultilingualPress\Common\ConditionalAwareRequest

부터: 3.0.0
상속: implements Inpsyde\MultilingualPress\Common\Request
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
__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.