How to modify default tags in wp_head()
Sure, we can modify meta tags in WordPress using actions and filters. The <title> tag is pretty easy, WP already has a filter called document_title_parts that allows you to manipulate the title before being outputted to the page. Here’s a simplified example of using it : add_filter( ‘document_title_parts’, ‘filter_document_title_parts’, 10, 1 ); function filter_document_title_parts( $title_parts … Read more