Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rafiahmedd/e7e42e6b38777adddc7c80675394c085 to your computer and use it in GitHub Desktop.
Save rafiahmedd/e7e42e6b38777adddc7c80675394c085 to your computer and use it in GitHub Desktop.
Change both GDPR & Terms and Condition Response data
$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