Created
September 30, 2022 07:56
-
-
Save swissspidy/32591d5116cb5c7a444bba7d04da71c6 to your computer and use it in GitHub Desktop.
Mini-plugin to workaround potential duplicate document title issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Web Stories Disable title tag | |
* Description: If for some reason you're seeing duplicate `<title>` tags for stories. | |
* Plugin URI: https://wp.stories.google/ | |
* Author: Pascal Birchler, Google | |
* Author URI: https://opensource.google.com/ | |
* Version: 0.0.1 | |
* License: Apache License 2.0 | |
* License URI: https://www.apache.org/licenses/LICENSE-2.0 | |
*/ | |
add_filter( 'web_stories_enable_document_title', '__return_false' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment