WordPress.org

Make WordPress Core

Changeset 45388


Ignore:
Timestamp:
05/23/2019 10:41:12 PM (6 months ago)
Author:
johnbillion
Message:

Docs: Remove incorrect information about usage of the "from" filters in wp_mail(), tidy up formatting.

See #47110

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r45302 r45388  
    144144if ( ! function_exists( 'wp_mail' ) ) :
    145145    /**
    146      * Send mail, similar to PHP's mail
     146     * Sends an email, similar to PHP's mail function.
    147147     *
    148148     * A true return value does not automatically mean that the user received the
     
    150150     * process the request without any errors.
    151151     *
    152      * Using the two 'wp_mail_from' and 'wp_mail_from_name' hooks allow for
    153      * creating a from address like 'Name <email@address.com>' when both are set. If
    154      * just 'wp_mail_from' is set, then just the email address will be used with no
    155      * name.
    156      *
    157      * The default content type is 'text/plain' which does not allow using HTML.
     152     * The default content type is `text/plain` which does not allow using HTML.
    158153     * However, you can set the content type of the email by using the
    159154     * {@see 'wp_mail_content_type'} filter.
Note: See TracChangeset for help on using the changeset viewer.