Skip to content

Instantly share code, notes, and snippets.

@ajaydsouza
Last active September 26, 2015 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajaydsouza/9b1bc56cec79295e784c to your computer and use it in GitHub Desktop.
Save ajaydsouza/9b1bc56cec79295e784c to your computer and use it in GitHub Desktop.
CRP / Top 10 - WPML functions
<?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