
Provides features and functions to create an opt-in or double-opt in with contact form 7 (cf7) and other form plugins.
To store your contacts, please install the additional plugin called bin contact. This plugin assists you installing all the necessary dependencies.
BinOptIn::optIn($postdata, [ 'opt_in_admin_message' => false, 'double_opt_in' => false, 'admin_unlock' => false, 'unlock_message' => false ]);
opt_in_admin_message
(bool) Notify the site owner of any new contact, regardless of whether or not he has confirmed his e-mail address. Default false.
double_opt_in
(bool) The contact must confirm the e-mail address by clicking on a confirmation link. Default false.
admin_unlock
(bool) The site owner has to confirm every new contact by clicking on a confirmation link. This is useful if you want to show a list of contacts (like a committee or a list of supporters). Default false.
unlock_message
(bool) This option allows you to specify whether the contact should receive a notification once the site owner has confirmed the committee subscription. Default false.
mailchimp_opt_in
(bool) This option allows you to specify whether the contact will be forwarded to Mailchimp. Default false.
salutation
(int) Default empty.
polite_form
(int) Default empty.
language_of_correspondence
(int) Check this functions to see a list of all available languages: BinContact::formLanguage() and BinContact::formLanguageValue()
name_suffix
(string) Default empty.
first_name
(string) Default empty.
last_name
(string) Default empty.
designation
(string) Default empty.
mobile
(string) Default empty.
phone_private
(string) Default empty.
phone_work
(string) Default empty.
street_and_number
(string) Default empty.
zip
(string) Default empty.
city
(string) Default empty.
country
(string) Default empty.
website
(string) Default empty.
facebook
(string) Default empty.
twitter
(string) Default empty.
instagram
(string) Default empty.
flickr
(string) Default empty.
linkedin
(string) Default empty.
xing
(string) Default empty.
youtube
(string) Default empty.
socialmedia_other1
(string) Default empty.
socialmedia_other2
(string) Default empty.
socialmedia_other3
(string) Default empty.
terms_and_conditions_accepted
(string) Default empty.
privacy_policy_accepted
(string) Default empty.
contact_group
(string) Comma seperated list of contact_group taxonomy terms or ID’s. Default empty.
Bin Opt-In works best with contact form seven. To integrate it into your contact forms, you need to add custom code like this to your theme functions.php.
add_action('wpcf7_before_send_mail', 'bin_opt_in_contact'); function bin_opt_in_contact($cf7) { // Get current form id $formId = $cf7->id; // Array of form ids $forms = [159, 454]; // Only apply to certain forms if(in_array($formId, $forms)) { // Dont do anything if class is missing if(class_exists('BinOptIn')) { // At least, the email must be present if(is_email($_POST['email'])) { // map salutation $salutationMap = [ 'Frau' => 0, 'Madame' => 0, 'Mrs' => 0, 'Herr' => 1, 'Monsieur' => 1, 'Mr' => 1, '*' => 2 ]; // assign form data with corresponding meta fields $postdata = []; $postdata['email'] = sanitize_email($_POST['email']); $postdata['first_name'] = sanitize_text_field($_POST['first_name']); $postdata['last_name'] = sanitize_text_field($_POST['last_name']); $postdata['salutation'] = $salutationMap[$_POST['salutation']]; $postdata['terms_and_conditions_accepted'] = isset($_POST['terms_and_conditions_accepted']) ? 'yes' : ''; // save contact BinOptIn::optIn($postdata, [ 'opt_in_admin_message' => false, 'double_opt_in' => false, 'admin_unlock' => false, 'unlock_message' => false ]); } } } } Save form data at every step by using the filter wpcf7_validate.
add_filter('wpcf7_validate', 'save_contact_step', 10, 2); function save_contact_step($result, $tags) { // Get current form id $formId = $_POST['_wpcf7']; // Array of form ids $forms = [159, 454]; // Only apply to certain forms if(in_array($formId, $forms)) { // Dont do anything if class is missing if(class_exists('BinOptIn')) { // save contact info here // BinOptIn::optIn() } } return $result; } Starting from $0 per month.
Rating
Reviewers
No reviews
Tags
Developed By
Berg Informatik
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Contact Form plugins for Wordpress
Forms plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Comments plugins for Wordpress
Portfolio plugins for Wordpress
Maps plugins for Wordpress
Security plugins for Wordpress
Translation plugins for Wordpress
Ads plugins for Wordpress
Video Player plugins for Wordpress
Music Player plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Chat plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Tabs plugins for Wordpress
Membership plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Inventory plugins for Wordpress
Video Player plugins for Wordpress
Testimonials plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Social Feeds plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Events Calendar plugins for Wordpress
Contact plugins for Wordpress
Comments plugins for Wordpress
Analytics plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Show Tripadvisor reviews to build trust, improve credibility, and help visitors make confident booking decisions that support higher property sales.
Create structured layouts with a section builder that lets you design custom website sections, customize styles, and organize content for a clearer user experience.
Present dishes with restaurant menu flip cards that highlight key details, help visitors explore options easily, and support confident ordering decisions.
Slide in panel that appears from the top or bottom to highlight offers, capture attention, and guide visitors toward more conversions.
Bracket generator for creating interactive tournaments that organize matchups, track progress, and deliver a clear and engaging competition experience.

Show Blogger posts automatically with a Blogger feed that keeps your content fresh, improves navigation, and helps visitors discover more of your work.

Collect event responses with an RSVP form that lets guests register easily, saves submissions, sends notifications, and helps you organize attendance efficiently.
Show Glassdoor reviews to highlight employee feedback, strengthen employer brand, and help candidates trust your company.
Use flip cards to present information interactively, improve visual design, and guide visitors toward clearer decisions that support conversions.
Add Messenger Chat to your site to communicate with visitors, offer fast support, and create a smoother user experience across all pages.

Show Tumblr posts with a Tumblr feed that keeps content fresh, improves navigation, and helps visitors discover more posts.
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!
