Created
May 31, 2018 13:29
-
-
Save obiPlabon/1ccf7af17539ceef9ee17182359ee290 to your computer and use it in GitHub Desktop.
Remove schema attributes from WordPress the_custom_logo generated logo html
This file contains hidden or 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 | |
/** | |
* Remove schema attributes from custom logo html | |
* | |
* @param string $html | |
* @return string | |
*/ | |
function op_remove_custom_logo_schema_attr( $html ) { | |
return str_replace( array( 'itemprop="url"', 'itemprop="logo"' ), '', $html ); | |
} | |
add_filter( 'get_custom_logo', 'op_remove_custom_logo_schema_attr' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment