本文整理汇总了PHP中bp_account_was_activated函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_account_was_activated函数的具体用法?PHP bp_account_was_activated怎么用?PHP bp_account_was_activated使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bp_account_was_activated函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dummy_post
/**
* Update the global $post with dummy data.
*
* @since BuddyPress (1.7.0)
*/
public function dummy_post()
{
// Registration page
if (bp_is_register_page()) {
$title = __('Create an Account', 'buddypress');
if ('completed-confirmation' == bp_get_current_signup_step()) {
$title = __('Check Your Email To Activate Your Account!', 'buddypress');
}
// Activation page
} else {
$title = __('Activate your Account', 'buddypress');
if (bp_account_was_activated()) {
$title = __('Account Activated', 'buddypress');
}
}
bp_theme_compat_reset_post(array('ID' => 0, 'post_title' => $title, 'post_author' => 0, 'post_date' => 0, 'post_content' => '', 'post_type' => 'page', 'post_status' => 'publish', 'is_page' => true, 'comment_status' => 'closed'));
}
示例2: do_action
<?php
do_action('bp_before_activation_page');
?>
<div class="page" id="activate-page">
<?php
do_action('template_notices');
?>
<?php
do_action('bp_before_activate_content');
?>
<?php
if (bp_account_was_activated()) {
?>
<?php
if (isset($_GET['e'])) {
?>
<p><?php
_e('Your account was activated successfully! Your account details have been sent to you in a separate email.', 'firmasite');
?>
</p>
<?php
} else {
?>
<p><?php
printf(__('Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'firmasite'), wp_login_url(bp_get_root_domain()));
?>