Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript.

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.

Arguments

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

Example

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;
}

 

0
0
208
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply