Skip to content

Commit

Permalink
Change separator to pipe
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Jan 23, 2024
1 parent 6e730e3 commit dedcff3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/wp-content/themes/wporg-main-2022/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
*/
add_action( 'wp_enqueue_scripts', __NAMESPACE__ . '\enqueue_assets' );
add_action( 'init', __NAMESPACE__ . '\register_shortcodes' );
add_filter( 'document_title_separator', __NAMESPACE__ . '\document_title_separator' );
add_filter( 'wp_img_tag_add_loading_attr', __NAMESPACE__ . '\override_lazy_loading', 10, 2 );
add_filter( 'wporg_block_site_breadcrumbs', __NAMESPACE__ . '\update_site_breadcrumbs' );
add_filter( 'render_block_core/site-title', __NAMESPACE__ . '\use_parent_page_title', 10, 3 );
Expand Down Expand Up @@ -323,3 +324,13 @@ function update_header_template_part_class( $block ) {
}
return $block;
}

/**
* Change document title separator
*
* @param string $title
* @return string
*/
function document_title_separator( $title ) {
return '|';
}

0 comments on commit dedcff3

Please sign in to comment.