Created
September 7, 2018 12:14
-
-
Save srdjan-jcc/6e0f5019f6caffa6b532955897cc16ea to your computer and use it in GitHub Desktop.
WPML and WPTouch plugin
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 | |
/* | |
Plugin Name: WPTouch and WPML | |
Version: 0.1 | |
Description: Applies fixes. | |
*/ | |
add_filter( 'foundation_is_custom_latest_posts_page', 'wpml_wptouch_is_custom_latest_posts_page_filter' ); | |
function wpml_wptouch_is_custom_latest_posts_page_filter( $true, $latest_posts_page_id, $current_page_id ){ | |
if ( !is_admin() && apply_filters( 'wpml_object_id', $latest_posts_page_id, 'page', true ) == $current_page_id ){ | |
return true; | |
} | |
return $true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment