Jetpack_SEO_Titles::get_page_type PHP Méthode

get_page_type() public static méthode

Returns page type for current page. We need this helper in order to determine what user defined title format should be used for custom title.
public static get_page_type ( ) : string | boolean
Résultat string | boolean Type of current page or false if unsupported.
    public static function get_page_type()
    {
        if (is_front_page()) {
            return 'front_page';
        }
        if (is_category() || is_tag()) {
            return 'groups';
        }
        if (is_archive() && !is_author()) {
            return 'archives';
        }
        if (is_page()) {
            return 'pages';
        }
        if (is_singular()) {
            return 'posts';
        }
        return false;
    }