Created
July 23, 2015 17:17
-
-
Save scottopolis/f38c09ed4dba11eaadd2 to your computer and use it in GitHub Desktop.
Disable WP Touch for AppPresser
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
add_filter( 'wptouch_should_init_pro', 'appp_disable_wptouch' ); | |
function appp_disable_wptouch( $value ) { | |
if( class_exists( 'AppPresser' ) && AppPresser::is_app() ) { | |
$value = false; | |
} | |
return $value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment