Created
November 23, 2016 12:48
-
-
Save reddo/c055772405acdd077c4c75fdd1a297ce to your computer and use it in GitHub Desktop.
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
function custom_gform_confirmation( $confirmation, $form, $entry, $ajax ) { | |
if (!function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage') && !function_exists('qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage')) { | |
return $confirmation . "<br> not translated"; | |
} else { | |
$confirmation = function_exists('qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage') ? qtranxf_useCurrentLanguageIfNotFoundUseDefaultLanguage($confirmation) : qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($confirmation); | |
return $confirmation . "<br> translated"; | |
} | |
} | |
add_filter( 'gform_confirmation', 'custom_gform_confirmation', 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment