We have started hooks and filters to the plugin, the first filter we added is,

1- mg_change_imap_flag

This can be used to modify connection string of mail inbox. Use it to add additional parameters required by gmail or any other service provider. You can connect to gmail inbox by pasting this snippet in your functions.php of active theme.

function gmail_imap_connection_string_wpmg($strConnect){

$strConnect = ‘{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX’;

return $strConnect;

}

add_filter(“mg_change_imap_flag”,”gmail_imap_connection_string_wpmg”);

=====================================================================

For Hostmonster we were able to connect to imap using this code below.


function hostmonster_imap_connection_string_wpmg($strConnect){

$strConnect = ‘{host312.hostmonster.com/imap/ssl/novalidate-cert}INBOX’;

return $strConnect;

}

add_filter(“mg_change_imap_flag”,”hostmonster_imap_connection_string_wpmg”);

/*for connecting WordPress mailing group plugin to office 365 use snippet below, replace user@maindomain.com with office 365 email*/

function gmail_imap_connection_string_wpmg($strConnect){

$strConnect = ‘{outlook.office365.com:993/imap/ssl/novalidate-cert/authuser=user@maindomain.com}INBOX’;

return $strConnect;

}

add_filter(“mg_change_imap_flag”,”gmail_imap_connection_string_wpmg”);

 

2- wpmg_subscription_on_submit_before
This is action hook and executes right after subscription form is submitted.

 

3- wpmg_subscription_on_submit_after_success_message
This is an action hook which occurs when subscription is successfully submitted.

 

4- wpmg_email_footer_text (filter)
This is the filter where you can modify footer text for group emails.


function modify_footer_text($footer_text,$row_member, $row_email){

$footer_text = ‘My custom footer text for WordPress mailing group plugin footer’;

return $footer_text;

}

add_filter(“wpmg_email_footer_text”,”modify_footer_text”,10,3);

 

5- Email Related Filters (can be found in crons/wpmg_cron_send_email.php)
mg_modify_reply_to_email_php
mg_modify_reply_to_name_php
mg_modify_from_name_php

mg_modify_reply_to_email_smtp
mg_modify_reply_to_name_smtp
mg_modify_from_name_smtp

mg_modify_reply_to_email_wp
mg_modify_reply_to_name_wp
mg_modify_from_name_wp

×

Hello!

Click one of our representatives below to chat on WhatsApp or send us an email to passionate.ym@gmail.com

× How can I help you?