Last active
September 26, 2015 00:34
-
-
Save ajaydsouza/9b1bc56cec79295e784c to your computer and use it in GitHub Desktop.
CRP / Top 10 - WPML functions
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 | |
/** | |
* This function forces all related / top ten posts are from the same language. | |
* | |
* @param bool $return_original_if_missing | |
*/ | |
function filter_return_ori( $return_original_if_missing ) { | |
return true; | |
} | |
add_filter( 'crp_wpml_return_original', 'filter_return_ori' ); | |
add_filter( 'tptn_wpml_return_original', 'filter_return_ori' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment