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 = '{}INBOX';

return $strConnect;






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

function hostmonster_imap_connection_string_wpmg($strConnect){

$strConnect = ‘{}INBOX’;

return $strConnect;



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.