Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
CRP / Top 10 - WPML functions
* 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
You can’t perform that action at this time.