icosmo
Forum Replies Created
-
Forum: Plugins
In reply to: [Maintenance] Bug with admin_bar with woocommerce usersLast version 3.0 updated 21 hours ago did not fix this admin bar issue… I had to manually edit the function again.
Forum: Plugins
In reply to: [Maintenance] Bug with admin_bar with woocommerce usersMr. Abumalick has the point, the plugin is breaking the show_admin_bar action. Please fix this in a next release.
Forum: Plugins
In reply to: [Polylang] No string translation for Call To Action in Salient ThemeHi Jeremy, I’m also dealing with this issue, did you find a solution?
Forum: Plugins
In reply to: [Contact Form 7] CF7 adds email and name to MyMail listOk, I had a chance to try it and got it to work. Here’s what I did:
– Edited the file wp-content\plugins\myMail\includes\functions.php and added this code to the bottom of the file, just above “?>”:
/* * requires a checkbox with the the name "newsletter" in your CF7 */ function wpcf7_my_validate( $result, $tag ) { $type = $tag['type']; $name = $tag['name']; if ( 'newsletter' == $name ) { $subscribe = isset($_POST[$name]); if(function_exists('mymail_subscribe') && $subscribe){ $email = $_POST['email']; $userdata = array( 'firstname' => $_POST['firstname'], 'lastname' => $_POST['lastname'], 'company' => $_POST['company'], 'phone' => $_POST['phone'], ); $listname = "YOUR LIST NAME HERE"; mymail_subscribe($email, $userdata, $listname); } } return $result; } add_filter( 'wpcf7_validate_checkbox', 'wpcf7_my_validate', 10, 2 );
– Then I added the following tag to the CF7 forms:
[checkbox newsletter default:1 "Subscribe newsletter"]
– Checked my CF7 label names to match those of MyMail fields (firstname, email, company, etc) – note that “company” and “phone” are my custom fields
– Tested to see if it works
And it was done.
Hope it works for you, if you need any help let me know.
Cheers
Forum: Plugins
In reply to: [Contact Form 7] CF7 adds email and name to MyMail listLater this week i’ll have the opportunity to test it, I’ll let you know how it goes.
Cheers
Forum: Plugins
In reply to: [Contact Form 7] CF7 adds email and name to MyMail listHey, I found out that this code was written by the MyMail plugin author and to work it’s necessary to put it in functions.php.
It’s important not to forget to add the “newsletter” checkbox to all CF7 forms applicable.
I haven’t had the change to try it yet, if it works with you let me know.
Cheers
Forum: Plugins
In reply to: [Contact Form 7] CF7 adds email and name to MyMail listHi wordpresschamp, I’m trying to achieve the same thing, did you find a solution?