PHP Interface Inpsyde\MultilingualPress\Common\Request

Since: 3.0.0
Show file Open project: inpsyde/multilingual-press Interface Usage Examples

Public Methods

Method Description
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.

Method Details

post_type() public method

Returns the (first) post type of the current request.
Since: 3.0.0
public post_type ( ) : string
return string The (first) post type, or empty string if not applicable.

queried_object_id() public method

For term archives, this is the term taxonomy ID (not the term ID).
Since: 3.0.0
public queried_object_id ( ) : integer
return integer The ID of the queried object.

type() public method

Returns the type of the current request.
Since: 3.0.0
public type ( ) : string
return string Request type, or empty string on failure.