For compliance reasons, we were asked to not provide a UI option to disable the disclosure text, however that’s not to say it couldn’t be visually hidden via CSS and the ‘display’ property.
I commented out line 1183 of wp-content\plugins\constant-contact-forms\class-display.php
return sprintf( __( 'By submitting this form, you are granting: %s, permission to email you. You may unsubscribe via the link found at the bottom of every email. (See our Email Privacy Policy (http://constantcontact.com/legal/privacy-statement) for details.) Emails are serviced by Constant Contact.', 'constant-contact-forms' ), $this->plugin->api->get_disclosure_info() );
You can also remove the <hr><sub> form line 1172 of the same file to tighten up the bottom of the form.
return apply_filters( 'constant_contact_disclose', '<hr><sub>' . $this->get_inner_disclose_text() . '</sub>' );
You may have to re-comment it if there are any updates of course.
Just realized you had the thread at https://wordpress.org/support/topic/contacts-added-but-no-opt-in-email-sent/#post-8510772 so I ended up posting essentially the same answer as here.
Yes, you will need to re-edit each time we push out an update, but you’re aware of that limitation and need.
Hey Guys….I have a stupid question.
Is this correct for commenting this out since it’s PHP:
public function get_inner_disclose_text() <?{
return sprintf( __( ‘By submitting this form, you are granting: %s, permission to email you. You may unsubscribe via the link found at the bottom of every email. (See our Email Privacy Policy (http://constantcontact.com/legal/privacy-statement) for details.) Emails are serviced by Constant Contact.’, ‘constant-contact-forms’ ), $this->plugin->api->get_disclosure_info() );
}?>
Thanks!
I’d recommend against that, since you’d have to re-remove it on your own any time we update. Personally I’d look about 10 lines up at the filter, and consider the __return_empty_string()
function.