本文整理汇总了PHP中BYT_Theme_Utils::activate_user方法的典型用法代码示例。如果您正苦于以下问题:PHP BYT_Theme_Utils::activate_user方法的具体用法?PHP BYT_Theme_Utils::activate_user怎么用?PHP BYT_Theme_Utils::activate_user使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BYT_Theme_Utils
的用法示例。
在下文中一共展示了BYT_Theme_Utils::activate_user方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _e
* Registration completed
*/
if (isset($_GET['action']) && $_GET['action'] == 'registered') {
?>
<p class="success">
<?php
_e('Account was successfully created. Please click the activation link in the email we just sent you to complete the registration process.', 'bookyourtravel');
?>
</p>
<?php
} else {
if (isset($_GET['action']) && $_GET['action'] == 'activate' && isset($_GET['user_id']) && isset($_GET['activation_key'])) {
/**
* User activation
*/
if (BYT_Theme_Utils::activate_user(wp_kses($_GET['user_id'], ''), wp_kses($_GET['activation_key'], ''))) {
?>
<p class="success">
<?php
echo sprintf(__('User account successfully activated. Please proceed to the <a href="%s">login</a> page to login in.', 'bookyourtravel'), $login_page_url);
?>
</p>
<?php
} else {
?>
<p class="error">
<?php
_e('An error was encountered when attempting to activate your account.', 'bookyourtravel');
?>
</p>
<?php