本文整理匯總了PHP中BYT_Theme_Utils::newpassword_notification方法的典型用法代碼示例。如果您正苦於以下問題:PHP BYT_Theme_Utils::newpassword_notification方法的具體用法?PHP BYT_Theme_Utils::newpassword_notification怎麽用?PHP BYT_Theme_Utils::newpassword_notification使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BYT_Theme_Utils
的用法示例。
在下文中一共展示了BYT_Theme_Utils::newpassword_notification方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _e
</h3>
<?php
if (isset($_GET['action']) && $_GET['action'] == 'resetpasswordnotification') {
?>
<p class="success">
<?php
_e('Please confirm the request to reset your password by clicking the link sent to your email address.', 'bookyourtravel');
?>
</p>
<?php
} else {
if (isset($_GET['action']) && $_GET['action'] == 'resetpassword' && isset($_GET['user_id']) && isset($_GET['resetpassword_key'])) {
$user_id = wp_kses($_GET['user_id'], '', '');
$resetpassword_key = wp_kses($_GET['resetpassword_key'], '', '');
$new_password = BYT_Theme_Utils::resetpassword($user_id, $resetpassword_key);
if ($new_password && BYT_Theme_Utils::newpassword_notification($user_id, $new_password)) {
?>
<p class="success">
<?php
_e('Your password was successfully reset. We have sent the new password to your email address.', 'bookyourtravel');
?>
</p>
<?php
} else {
?>
<p class="error">
<?php
_e('We encountered an error when attempting to reset your password. Please try again later.', 'bookyourtravel');
?>
</p>
<?php