当前位置: 首页>>代码示例>>PHP>>正文


PHP bp_get_current_signup_step函数代码示例

本文整理汇总了PHP中bp_get_current_signup_step函数的典型用法代码示例。如果您正苦于以下问题:PHP bp_get_current_signup_step函数的具体用法?PHP bp_get_current_signup_step怎么用?PHP bp_get_current_signup_step使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了bp_get_current_signup_step函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: buatp_fields_exclution

function buatp_fields_exclution($fields, $id)
{
    global $bp;
    $settings_basic = get_option('buatp_basic_setting', true);
    $settings_profile_data = get_option('buatp_profile_data_setting', true);
    if (!$settings_basic['buatp_default_type_selection'] || $_POST['action'] == 'append_conditional_fields') {
        return $fields;
    }
    $field_name = $settings_basic['buatp_type_field_selection'];
    $field_id = buatp_get_field_id_by_name($field_name);
    $type_names = buatp_get_all_types($field_id);
    foreach ((array) $type_names as $val) {
        if (bp_is_current_action('edit') || bp_is_current_action('public')) {
            $user_id = $bp->displayed_user->id;
            if (is_super_admin($bp->loggedin_user->id)) {
                return $fields;
            }
            $user_type = buatp_get_field_data($settings_basic['buatp_type_field_selection'], $user_id);
            if ($user_type == $val['name']) {
                $excludes_arr = (array) $settings_profile_data['buatp_exclude_fields_for_' . $val['id']];
            }
        }
        if ('request-details' == bp_get_current_signup_step()) {
            $excludes_arr = array_merge((array) $excludes_arr, (array) $settings_profile_data['buatp_exclude_fields_for_' . $val['id']]);
        }
    }
    if ($settings_basic['buatp_can_user_change_type'] == 'false' && !is_super_admin($bp->loggedin_user->id) && bp_get_current_signup_step() != 'request-details' && apply_filters('buatp_show_type_field_condition', true) && $bp->current_action == 'edit' && $bp->current_component == 'profile') {
        $excludes_arr = array_merge((array) $excludes_arr, array($field_name));
    }
    $excludes = array();
    foreach ((array) $excludes_arr as $names) {
        $excludes[$i++] = buatp_get_field_id_by_name($names);
    }
    $field_info = $fields;
    foreach ((array) $field_info as $index => $field) {
        if (in_array($field->id, $excludes)) {
            unset($fields[$index]);
        }
    }
    return apply_filters('buatp_fields_exclution', array_merge((array) $fields));
}
开发者ID:jfeliweb,项目名称:BuddyPress-User-Account-Type,代码行数:41,代码来源:bp-user-type-hooks.php

示例2: do_action

				<?php 
    do_action('bp_after_registration_submit_buttons');
    ?>

				<?php 
    wp_nonce_field('bp_new_signup');
    ?>

			<?php 
}
// request-details signup step
?>

			<?php 
if ('completed-confirmation' == bp_get_current_signup_step()) {
    ?>

				<h2><?php 
    _e('Sign Up Complete!', 'buddypress');
    ?>
</h2>

				<?php 
    do_action('template_notices');
    ?>
				<?php 
    do_action('bp_before_registration_confirmed');
    ?>

				<?php 
开发者ID:igniterealtime,项目名称:community-plugins,代码行数:30,代码来源:register.php

示例3: 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'));
 }
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:22,代码来源:bp-members-screens.php

示例4: bp_current_signup_step

/**
 * Output the current signup step.
 */
function bp_current_signup_step()
{
    echo bp_get_current_signup_step();
}
开发者ID:mawilliamson,项目名称:wordpress,代码行数:7,代码来源:bp-members-template.php


注:本文中的bp_get_current_signup_step函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。