Last active
December 19, 2015 07:09
-
-
Save jdevalk/5917169 to your computer and use it in GitHub Desktop.
Add this to your functions.php to make WP SEO work with qTranslate, per this thread: http://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-compatibility-with-qtranslate?replies=24#post-3797599
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 | |
/** | |
* Enable qTranslate for WordPress SEO | |
* | |
* @param string $text The string to translate | |
* | |
* @return string | |
*/ | |
function qtranslate_filter( $text ) { | |
return __( $text ); | |
} | |
add_filter( 'wpseo_title', 'qtranslate_filter', 10, 1 ); | |
add_filter( 'wpseo_metadesc', 'qtranslate_filter', 10, 1 ); | |
add_filter( 'wpseo_metakey', 'qtranslate_filter', 10, 1 ); | |
add_filter( 'wpseo_opengraph_title', 'qtranslate_filter', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can't see any change in dashboard after adding this code, I expect the I will see multiple input for each language.