本文整理匯總了PHP中BYT_Theme_Utils::resetpassword_notification方法的典型用法代碼示例。如果您正苦於以下問題:PHP BYT_Theme_Utils::resetpassword_notification方法的具體用法?PHP BYT_Theme_Utils::resetpassword_notification怎麽用?PHP BYT_Theme_Utils::resetpassword_notification使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類BYT_Theme_Utils
的用法示例。
在下文中一共展示了BYT_Theme_Utils::resetpassword_notification方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get_user_by
$user = get_user_by('login', $resetpassword_userdata['user_email']);
if (!$user) {
$errors['user_email'] = __('You must enter a valid and existing email address or username.', 'bookyourtravel');
}
} else {
if (!email_exists($resetpassword_userdata['user_email'])) {
$errors['user_email'] = __('You must enter a valid and existing email address or username.', 'bookyourtravel');
}
}
if (empty($errors)) {
$user = get_user_by('email', $resetpassword_userdata['user_email']);
// update custom user meta
foreach ($resetpassword_usermeta as $key => $value) {
update_user_meta($user->ID, $key, $value);
}
BYT_Theme_Utils::resetpassword_notification($user->ID);
// refresh
wp_redirect(esc_url_raw(add_query_arg(array('action' => 'resetpasswordnotification'), get_permalink())));
exit;
}
}
}
get_header();
BYT_Theme_Utils::breadcrumbs();
get_sidebar('under-header');
global $post;
$page_id = $post->ID;
$page_custom_fields = get_post_custom($page_id);
$page_sidebar_positioning = null;
if (isset($page_custom_fields['page_sidebar_positioning'])) {
$page_sidebar_positioning = $page_custom_fields['page_sidebar_positioning'][0];