* Filter the new user notification message. * * @param string $message The notification message. * * @return string */ public function modify_notification_message($message) { if (!empty($this->notification_message)) { $message = $this->notification_message . "\r\n\r\n" . $message; } return $message; } } if (!function_exists('wp_new_user_notification')) { Simple_User_Adding_Plugin::$can_modify_email = true; if (version_compare($wp_version, '4.3', '<')) { /** * Email login credentials to a newly-registered user. * * A new user registration notification is also sent to admin email. * * @since 2.0.0 * * @param int $user_id User ID. * @param string $plaintext_pass Optional. The user's plaintext password. Default empty. */ function wp_new_user_notification($user_id, $plaintext_pass = '') { $user = get_userdata($user_id); // The blogname option is escaped with esc_html on the way into the database in sanitize_option
* License: GPLv2+ * Text Domain: simple-user-adding * Domain Path: /languages */ /** * Copyright (c) 2015 required+ (email : support@required.ch) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 2 or, at * your discretion, any later version, as published by the Free * Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ defined('WPINC') or die; include dirname(__FILE__) . '/lib/requirements-check.php'; $simple_user_adding_requirements_check = new Simple_User_Adding_Requirements_Check(array('title' => 'Simple User Adding', 'php' => '5.3', 'wp' => '3.1', 'file' => __FILE__)); if ($simple_user_adding_requirements_check->passes()) { // Pull in the plugin classes and initialize include dirname(__FILE__) . '/lib/wp-stack-plugin.php'; include dirname(__FILE__) . '/classes/plugin.php'; Simple_User_Adding_Plugin::start(__FILE__); } unset($simple_user_adding_requirements_check);
function plugin() { return Simple_User_Adding_Plugin::get_instance(); }