本文整理汇总了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));
}
示例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
示例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'));
}
示例4: bp_current_signup_step
/**
* Output the current signup step.
*/
function bp_current_signup_step()
{
echo bp_get_current_signup_step();
}