PHP Interface Inpsyde\MultilingualPress\Common\Request

Since: 3.0.0
Afficher le fichier Open project: inpsyde/multilingual-press Interface Usage Examples

Méthodes publiques

Méthode 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 méthode

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

queried_object_id() public méthode

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

type() public méthode

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