| 1689 | | wp_mail( get_option( 'admin_email' ), sprintf( __( '[%s] Password Changed' ), $blogname ), $message ); |
| | 1690 | $subject = sprintf( __( '[%s] Password Changed' ) ); |
| | 1691 | /** |
| | 1692 | * Filters the subject of the password change notification admin email. |
| | 1693 | * In pluggable function maybe missing |
| | 1694 | * |
| | 1695 | * @since 4.7.0 |
| | 1696 | * |
| | 1697 | * @param string $title Default email title. |
| | 1698 | * @param string $blogname title of blog. |
| | 1699 | */ |
| | 1700 | $subject = apply_filters( 'wp_password_change_notification_subject', $subject, $blogname ); |
| | 1701 | |
| | 1702 | /** |
| | 1703 | * Filters the message body of the password change notification admin email. |
| | 1704 | * In pluggable function maybe missing |
| | 1705 | * |
| | 1706 | * @since 4.7.0 |
| | 1707 | * |
| | 1708 | * @param string $message Default mail message. |
| | 1709 | * @param string $blogname title of blog. |
| | 1710 | */ |
| | 1711 | $message = apply_filters( 'wp_password_change_notification_message', $message, $blogname, $user ); |
| | 1712 | /** |
| | 1713 | * Filters the password change notification admin email headers. |
| | 1714 | * In pluggable function maybe missing |
| | 1715 | * |
| | 1716 | * @since 4.7.0 |
| | 1717 | * |
| | 1718 | * @param string $message_headers Headers for the password change notification admin email. |
| | 1719 | * @param string $blogname title of blog. |
| | 1720 | */ |
| | 1721 | $message_headers = apply_filters( 'wp_password_change_notification_headers', '', $blogname ); |
| | 1722 | |
| | 1723 | wp_mail( get_option( 'admin_email' ), wp_specialchars_decode( $subject ), $message, $message_headers ); |
| 1730 | | @wp_mail( get_option( 'admin_email' ), sprintf( __( '[%s] New User Registration' ), $blogname ), $message ); |
| | 1764 | /** |
| | 1765 | * Filters the message body of the new user notify email send to site admin. |
| | 1766 | * In pluggable function maybe missing |
| | 1767 | * |
| | 1768 | * @since 4.7.0 |
| | 1769 | * |
| | 1770 | * @param string $message Default mail message. |
| | 1771 | * @param string $blogname title of blog. |
| | 1772 | * @param WP_User $user WP_User object. |
| | 1773 | */ |
| | 1774 | |
| | 1775 | $message = apply_filters( 'wp_new_user_notification_admin_message', $message, $blogname, $user ); |
| | 1776 | /* translators: %s: site title */ |
| | 1777 | $subject = sprintf( __( '[%s] New User Registration' ), $blogname ); |
| | 1778 | /** |
| | 1779 | * Filters the subject of the new user notify email send to site admin. |
| | 1780 | * In pluggable function maybe missing |
| | 1781 | * |
| | 1782 | * @since 4.7.0 |
| | 1783 | * |
| | 1784 | * @param string $title Default email title. |
| | 1785 | * @param string $blogname title of blog. |
| | 1786 | * @param WP_User $user WP_User object. |
| | 1787 | */ |
| | 1788 | |
| | 1789 | $subject = apply_filters( 'wp_new_user_notification_admin_subject', $subject, $blogname, $user ); |
| | 1790 | |
| | 1791 | /** |
| | 1792 | * Filters the new user notify send to site admin email headers. |
| | 1793 | * In pluggable function maybe missing |
| | 1794 | * |
| | 1795 | * @since 4.7.0 |
| | 1796 | * |
| | 1797 | * @param string $message_headers Headers for the new user notify send to site admin email. |
| | 1798 | * @param string $blogname title of blog. |
| | 1799 | */ |
| | 1800 | $message_headers = apply_filters( 'wp_new_user_notification_admin_headers', '', $blogname ); |
| | 1801 | |
| | 1802 | @wp_mail( get_option( 'admin_email' ), wp_specialchars_decode( $subject ), $message, $message_headers ); |
| 1751 | | $message = sprintf(__('Username: %s'), $user->user_login) . "\r\n\r\n"; |
| 1752 | | $message .= __('To set your password, visit the following address:') . "\r\n\r\n"; |
| 1753 | | $message .= '<' . network_site_url("wp-login.php?action=rp&key=$key&login=" . rawurlencode($user->user_login), 'login') . ">\r\n\r\n"; |
| | 1823 | $message = sprintf(__( 'Username: %s' ), $user->user_login) . "\r\n\r\n"; |
| | 1824 | $message .= __( 'To set your password, visit the following address:' ) . "\r\n\r\n"; |
| | 1825 | $message .= '<' . network_site_url( "wp-login.php?action=rp&key=$key&login=" . rawurlencode( $user->user_login ), 'login' ) . ">\r\n\r\n"; |
| 1757 | | wp_mail($user->user_email, sprintf(__('[%s] Your username and password info'), $blogname), $message); |
| | 1829 | /** |
| | 1830 | * Filters the message body of the new user email message. |
| | 1831 | * In pluggable function maybe missing |
| | 1832 | * |
| | 1833 | * @since 4.7.0 |
| | 1834 | * |
| | 1835 | * @param string $message Default mail message. |
| | 1836 | * @param string $blogname title of blog. |
| | 1837 | * @param string $key User activation key. |
| | 1838 | * @param WP_User $user WP_User object. |
| | 1839 | */ |
| | 1840 | $message = apply_filters( 'wp_new_user_notification_message', $message, $blogname, $user, $key ); |
| | 1841 | |
| | 1842 | /* translators: %s: site title */ |
| | 1843 | $subject = sprintf( __( '[%s] New User Registration' ), $blogname ); |
| | 1844 | /** |
| | 1845 | * Filters the subject of the new user email. |
| | 1846 | * In pluggable function maybe missing |
| | 1847 | * |
| | 1848 | * @since 4.7.0 |
| | 1849 | * |
| | 1850 | * @param string $subject Default email title. |
| | 1851 | * @param string $blogname title of blog. |
| | 1852 | * @param WP_User $user WP_User object. |
| | 1853 | */ |
| | 1854 | $subject = apply_filters( 'wp_new_user_notification_subject', $subject, $blogname, $user ); |
| | 1855 | /** |
| | 1856 | * Filters the new user notify email headers. |
| | 1857 | * In pluggable function maybe missing |
| | 1858 | * |
| | 1859 | * @since 4.7.0 |
| | 1860 | * |
| | 1861 | * @param string $message_headers Headers for the new user notify email. |
| | 1862 | * @param string $blogname title of blog. |
| | 1863 | * @param WP_User $user WP_User object. |
| | 1864 | */ |
| | 1865 | $message_headers = apply_filters( 'wp_new_user_notification_headers', '', $blogname, $user ); |
| | 1866 | |
| | 1867 | wp_mail( $user->user_email, wp_specialchars_decode( $subject ), $message, $message_headers ); |