Last active
          December 16, 2015 16:39 
        
      - 
      
- 
        Save samsargent/5464513 to your computer and use it in GitHub Desktop. 
    Wordpress: Change default from name & email filters
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <?php | |
| function my_wp_mail_from_name($name) { | |
| return 'From Name'; | |
| } | |
| //email from email function | |
| function my_wp_mail_from($content_type) { | |
| return '[email protected]'; | |
| } | |
| add_filter('wp_mail_from','my_wp_mail_from'); | |
| add_filter('wp_mail_from_name','my_wp_mail_from_name'); | |
| ?> | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment