Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

The plugin can change From Email and Name for the emails sent, and to apply that it hooks into wp_mail function. The filter ‘gdmaq_mailer_phpmailer_change_from_priority‘ changes the priority of that operation.

This filter provides 1 argument.


  • $priority: The higher the value, the later it is executed. Default: 100000.


Change the priority value.

add_filter('gdmaq_mailer_phpmailer_change_from_priority', 'custom__gdmaq_mailer_phpmailer_change_from_priority', 10, 1);
function custom__gdmaq_mailer_phpmailer_change_from_priority($priority) {
  $priority = 3000000;

  return $priority;


Rate this reference

You are not allowed to rate this post.

Leave a Comment