Skip to content

Instantly share code, notes, and snippets.

@bvdr
Forked from cfxd/mailpoet-wp_mail.php
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save bvdr/a5316530705195a4c6db to your computer and use it in GitHub Desktop.

Select an option

Save bvdr/a5316530705195a4c6db to your computer and use it in GitHub Desktop.
<?php
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');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment