Skip to content

Instantly share code, notes, and snippets.

@cfxd
Last active May 29, 2019 11:52
Show Gist options
  • Save cfxd/29db3801c0dcb234e53a to your computer and use it in GitHub Desktop.
Save cfxd/29db3801c0dcb234e53a to your computer and use it in GitHub Desktop.
function mailpoet_enable_wpmail(){
if(class_exists('WYSIJA')){
$model_config = WYSIJA::get('config','model');
$model_config->save(array('allow_wpmail' => true));
}
}
add_action('init', 'mailpoet_enable_wpmail');
@reikjarloekl
Copy link

Doesn't seem to work with Mailpoet 3 anymore. Any clues if it is still possible?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment