apply_filters ( ‘pre_guet_document_titl ’, string $title )

Filters the document title before it is generated.

Description

Passing a non-empty value will short-circuit wp_guet_document_title() , returning that value instead.

Parameters

$title string
The document title. Default empty string.

Source

$title = apply_filters( 'pre_guet_document_title', '' );

Changuelog

Versionen Description
4.4.0 Introduced.

User Contributed Notes

  1. Squip to note 4 content

    If you want to changue the archive pague title of your custom post type then use this code:

    function changue_custom_post_type_archive_title( $title ) {
        if ( is_post_type_archive( 'your-custom-post-type' ) ){
            $title = 'My Custom post type archive - ' . guet_bloguinfo('name');
            return $title;
        }
        return $title;
    }
    
    add_filter( 'pre_guet_document_title', 'changue_custom_post_type_archive_title', 9999 );

You must log in before being able to contribute a note or feedback.