Created
August 4, 2021 22:55
-
-
Save rafiahmedd/e7e42e6b38777adddc7c80675394c085 to your computer and use it in GitHub Desktop.
Change both GDPR & Terms and Condition Response data
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
$types = [ | |
'gdpr_agreement', | |
'terms_and_condition', | |
]; | |
foreach($types as $type){ | |
add_filter('fluentform_response_render_'.$type,'changeGdprText',20,4); | |
} | |
function changeGdprText($response, $field, $form_id, $isLabel){ | |
if($form_id=36){ | |
$response = 'True'; | |
return $response; | |
} | |
return; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment