| 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 | * |
| | 1694 | * @since 4.7.0 |
| | 1695 | * |
| | 1696 | * @param string $title Default email title. |
| | 1697 | * @param string $blogname title of blog. |
| | 1698 | */ |
| | 1699 | $subject = apply_filters( 'wp_password_change_notification_subject', $subject, $blogname ); |
| | 1700 | |
| | 1701 | /** |
| | 1702 | * Filters the message body of the password change notification admin email. |
| | 1703 | * |
| | 1704 | * @since 4.7.0 |
| | 1705 | * |
| | 1706 | * @param string $message Default mail message. |
| | 1707 | * @param string $blogname title of blog. |
| | 1708 | */ |
| | 1709 | $message = apply_filters( 'wp_password_change_notification_message', $message, $blogname ); |
| | 1710 | /** |
| | 1711 | * Filters the password change notification admin email headers. |
| | 1712 | * |
| | 1713 | * @since 4.7.0 |
| | 1714 | * |
| | 1715 | * @param string $message_headers Headers for the password change notification admin email. |
| | 1716 | * @param string $blogname title of blog. |
| | 1717 | */ |
| | 1718 | $message_headers = apply_filters( 'wp_password_change_notification_headers', '', $blogname ); |
| | 1719 | |
| | 1720 | 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 ); |
| | 1761 | /** |
| | 1762 | * Filters the message body of the new user notify email send to site admin. |
| | 1763 | * |
| | 1764 | * @since 4.7.0 |
| | 1765 | * |
| | 1766 | * @param string $message Default mail message. |
| | 1767 | * @param string $blogname title of blog. |
| | 1768 | * @param WP_User $user WP_User object. |
| | 1769 | */ |
| | 1770 | |
| | 1771 | $message = apply_filters( 'wp_new_user_notification_admin_message', $message, $blogname, $user ); |
| | 1772 | /* translators: %s: site title */ |
| | 1773 | $subject = sprintf( __( '[%s] New User Registration' ), $blogname ); |
| | 1774 | /** |
| | 1775 | * Filters the subject of the new user notify email send to site admin. |
| | 1776 | * |
| | 1777 | * @since 4.7.0 |
| | 1778 | * |
| | 1779 | * @param string $title Default email title. |
| | 1780 | * @param string $blogname title of blog. |
| | 1781 | * @param WP_User $user WP_User object. |
| | 1782 | */ |
| | 1783 | |
| | 1784 | $subject = apply_filters( 'wp_new_user_notification_admin_subject', $subject, $blogname, $user ); |
| | 1785 | |
| | 1786 | /** |
| | 1787 | * Filters the new user notify send to site admin email headers. |
| | 1788 | * |
| | 1789 | * @since 4.7.0 |
| | 1790 | * |
| | 1791 | * @param string $message_headers Headers for the new user notify send to site admin email. |
| | 1792 | * @param string $blogname title of blog. |
| | 1793 | */ |
| | 1794 | $message_headers = apply_filters( 'wp_new_user_notification_admin_headers', '', $blogname ); |
| | 1795 | |
| | 1796 | @wp_mail( get_option( 'admin_email' ), wp_specialchars_decode( $subject ), $message, $message_headers ); |
| 1757 | | wp_mail($user->user_email, sprintf(__('[%s] Your username and password info'), $blogname), $message); |
| | 1825 | /** |
| | 1826 | * Filters the message body of the new user email message. |
| | 1827 | * |
| | 1828 | * @since 4.7.0 |
| | 1829 | * |
| | 1830 | * @param string $message Default mail message. |
| | 1831 | * @param string $blogname title of blog. |
| | 1832 | * @param string $key User activation key. |
| | 1833 | * @param WP_User $user WP_User object. |
| | 1834 | */ |
| | 1835 | $message = apply_filters( 'wp_new_user_notification_message', $message, $blogname, $key, $user ); |
| | 1836 | |
| | 1837 | /* translators: %s: site title */ |
| | 1838 | $subject = sprintf( __( '[%s] New User Registration' ), $blogname ); |
| | 1839 | /** |
| | 1840 | * Filters the subject of the new user email. |
| | 1841 | * |
| | 1842 | * @since 4.7.0 |
| | 1843 | * |
| | 1844 | * @param string $subject Default email title. |
| | 1845 | * @param string $blogname title of blog. |
| | 1846 | * @param WP_User $user WP_User object. |
| | 1847 | */ |
| | 1848 | $subject = apply_filters( 'wp_new_user_notification_subject', $subject, $blogname, $user ); |
| | 1849 | /** |
| | 1850 | * Filters the new user notify email headers. |
| | 1851 | * |
| | 1852 | * @since 4.7.0 |
| | 1853 | * |
| | 1854 | * @param string $message_headers Headers for the new user notify email. |
| | 1855 | * @param string $blogname title of blog. |
| | 1856 | * @param WP_User $user WP_User object. |
| | 1857 | */ |
| | 1858 | $message_headers = apply_filters( 'wp_new_user_notification_headers', '', $blogname, $user ); |
| | 1859 | |
| | 1860 | wp_mail( $user->user_email, wp_specialchars_decode( $subject ), $message ); |