Created
March 6, 2015 18:22
-
-
Save ericakfranz/959613aa789004a377f5 to your computer and use it in GitHub Desktop.
Display OptinMonster optins based on page language
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
add_filter( 'optin_monster_output', 'tgm_om_only_swedish', 100 ); | |
function tgm_om_only_swedish( $optins ) { | |
// Your function to check for Swedish. Change as necessary. | |
if ( ! is_swedish() ) { | |
$optins = array(); | |
} | |
return $optins; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment