pre_get_document_title

pre_get_document_title

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('pre_get_document_title') is found 1 times:

  • /wp-includes/general-template.php line 1188
    1184
    1185
    1186
    1187
    1188
    1189
    1190
    1191
    1192
    1193
    * @since 4.4.0
     *
     * @param string $title The document title. Default empty string.
     */
    $title = apply_filters( 'pre_get_document_title', '' );
    if ( ! empty( $title ) ) {
        return $title;
    }
     
    global $page, $paged;

See this hook used in plugins: