wp_title_parts

wp_title_parts

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('wp_title_parts') is found 1 times:

  • /wp-includes/general-template.php line 1439
    1435
    1436
    1437
    1438
    1439
    1440
    1441
    1442
    1443
    1444
    1445
    * @since 4.0.0
     *
     * @param string[] $title_array Array of parts of the page title.
     */
    $title_array = apply_filters( 'wp_title_parts', explode( $t_sep, $title ) );
     
    // Determines position of the separator and direction of the breadcrumb.
    if ( 'right' === $seplocation ) { // Separator on right, so reverse the order.
        $title_array = array_reverse( $title_array );
        $title       = implode( " $sep ", $title_array ) . $prefix;
    } else {