$list_ids = 1;<\/strong><\/li><\/ol>\n\n\n\n\/\/FORMIDABLE MAILSTER INTEGRATION\n\nadd_action('frm_after_create_entry', 'mailster_formidable_subscribe', 30, 2);\nadd_action('frm_after_update_entry', 'mailster_formidable_subscribe', 30, 2);\n\nfunction mailster_formidable_subscribe($entry_id, $form_id){\n\tif ( $form_id == 1 ) { \/\/change to the ID of your form\n\n\t\t\/\/ define to overwrite existing users\n\t\t$overwrite = true;\n\n\t\t\/\/ add with double opt in\n\t\t$double_opt_in = true;\n\n\t\t\/\/ prepare the userdata from a $_POST request. only the email is required\n\t\t$userdata = array(\n\t\t\t'email' => $_POST['item_meta'][7], \/\/change 535, 534, 533 to the ID of your email, first name and last name field\n\t\t\t'firstname' => $_POST['item_meta'][6],\n\t\t\t\/\/'lastname' => $_POST['item_meta'][534],\n\t\t\t'status' => $double_opt_in ? 0 : 1,\n\t\t);\n\n\t\t\/\/only subscribe the user if opt-in is true\n\t\tif ($_POST['item_meta'][72] == true) {\n\n\t\t\t$subscriber_id = mailster( 'subscribers' )->add( $userdata, $overwrite );\n\n\t\t\tif ( ! is_wp_error( $subscriber_id ) ) {\n\n\t\t\t\t\/\/ your list ids\n\t\t\t\t$list_ids = 1;\n\t\t\t\tmailster( 'subscribers' )->assign_lists( $subscriber_id, $list_ids );\n\n\t\t\t} else {\n\t\t\t\t\/\/ actions if adding fails. $subscriber_id is a WP_Error object\n\t\t\t}\n\n\t\t}\n\t}\n}\n\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"On my main site enym.com I use Formidable forms because it has great anti-spam measures and also uses the general „block words“ settings from WordPress. Formidable forms integrate well with a lot of external services like Mailchimp etc. Nonetheless, there is no official support for the newsletter plugin „Mailster“ which I tend to use. But…<\/p>\n","protected":false},"author":1,"featured_media":3641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-3636","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-allgemein","entry","has-media"],"_links":{"self":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/3636"}],"collection":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/comments?post=3636"}],"version-history":[{"count":5,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/3636\/revisions"}],"predecessor-version":[{"id":3649,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/posts\/3636\/revisions\/3649"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/media\/3641"}],"wp:attachment":[{"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/media?parent=3636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/categories?post=3636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowboard.de\/wp-json\/wp\/v2\/tags?post=3636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}