wp_mail_from_name

wp_mail_from_name

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-5.4.1

apply_filters('wp_mail_from_name') is found 1 times:

  • /wp-includes/pluggable.php line 355
    		 * @since 2.3.0
    		 *
    		 * @param string $from_name Name associated with the "from" email address.
    		 */
    		$from_name = apply_filters( 'wp_mail_from_name', $from_name );
    
    		try {
    			$phpmailer->setFrom( $from_email, $from_name, false );
    		} catch ( phpmailerException $e ) {
    			$mail_error_data                             = compact( 'to', 'subject', 'message', 'headers', 'attachments' );
    			$mail_error_data['phpmailer_exception_code'] = $e->getCode();
    

See this hook used in plugins: