• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP bp_has_custom_signup_page函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: bp_signup_page

function bp_signup_page($echo = true)
{
    global $bp;
    if (bp_has_custom_signup_page()) {
        if ($echo) {
            echo $bp->root_domain . '/' . BP_REGISTER_SLUG;
        } else {
            return $bp->root_domain . '/' . BP_REGISTER_SLUG;
        }
    } else {
        if ($echo) {
            echo $bp->root_domain . '/wp-signup.php';
        } else {
            return $bp->root_domain . '/wp-signup.php';
        }
    }
}
开发者ID:alvaropereyra,项目名称:shrekcms,代码行数:17,代码来源:bp-core-templatetags.php


示例2: bp_core_filter_blog_welcome_email

/**
 * Replace the generated password in the welcome email with '[User Set]'.
 *
 * On a standard BP installation, users who register themselves also set their
 * own passwords. Therefore there is no need for the insecure practice of
 * emailing the plaintext password to the user in the welcome email.
 *
 * This filter will not fire when a user is registered by the site admin.
 *
 * @param string $welcome_email Complete email passed through WordPress.
 * @param int $blog_id ID of the blog user is joining.
 * @param int $user_id ID of the user joining.
 * @param string $password Password of user.
 * @return string Filtered $welcome_email with $password replaced by '[User Set]'.
 */
function bp_core_filter_blog_welcome_email( $welcome_email, $blog_id, $user_id, $password ) {

	// Don't touch the email when a user is registered by the site admin
	if ( ( is_admin() || is_network_admin() ) && buddypress()->members->admin->signups_page != get_current_screen()->id ) {
		return $welcome_email;
	}

	// Don't touch the email if we don't have a custom registration template
	if ( ! bp_has_custom_signup_page() )
		return $welcome_email;

	// [User Set] Replaces $password in welcome email; Represents value set by user
	return str_replace( $password, __( '[User Set]', 'buddypress' ), $welcome_email );
}
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:29,代码来源:bp-core-filters.php


示例3: bp_core_wpsignup_redirect

/**
 * Redirect away from wp-signup.php if BP registration templates are present.
 *
 * @since 1.1.0
 */
function bp_core_wpsignup_redirect()
{
    // Bail in admin or if custom signup page is broken.
    if (is_admin() || !bp_has_custom_signup_page()) {
        return;
    }
    $action = !empty($_GET['action']) ? $_GET['action'] : '';
    // Not at the WP core signup page and action is not register.
    if (!empty($_SERVER['SCRIPT_NAME']) && false === strpos('wp-signup.php', $_SERVER['SCRIPT_NAME']) && 'register' != $action) {
        return;
    }
    bp_core_redirect(bp_get_signup_page());
}
开发者ID:CompositeUK,项目名称:clone.BuddyPress,代码行数:18,代码来源:bp-members-functions.php


示例4: bp_get_signup_page

/**
 * Get the URL to the signup page.
 *
 * @return string
 */
function bp_get_signup_page()
{
    if (bp_has_custom_signup_page()) {
        $page = trailingslashit(bp_get_root_domain() . '/' . bp_get_signup_slug());
    } else {
        $page = bp_get_root_domain() . '/wp-signup.php';
    }
    /**
     * Filters the URL to the signup page.
     *
     * @since 1.1.0
     *
     * @param string $page URL to the signup page.
     */
    return apply_filters('bp_get_signup_page', $page);
}
开发者ID:mawilliamson,项目名称:wordpress,代码行数:21,代码来源:bp-members-template.php


示例5: bp_get_signup_page

function bp_get_signup_page()
{
    global $bp;
    if (bp_has_custom_signup_page()) {
        $page = trailingslashit(bp_get_root_domain() . '/' . bp_get_signup_slug());
    } else {
        $page = bp_get_root_domain() . '/nxt-signup.php';
    }
    return apply_filters('bp_get_signup_page', $page);
}
开发者ID:nxtclass,项目名称:NXTClass-Plugin,代码行数:10,代码来源:bp-members-template.php


示例6: bp_core_filter_blog_welcome_email

/**
 * Replace the generated password in the welcome email with '[User Set]'.
 *
 * On a standard BP installation, users who register themselves also set their
 * own passwords. Therefore there is no need for the insecure practice of
 * emailing the plaintext password to the user in the welcome email.
 *
 * This filter will not fire when a user is registered by the site admin.
 *
 * @param string $welcome_email Complete email passed through WordPress.
 * @param int $blog_id ID of the blog user is joining.
 * @param int $user_id ID of the user joining.
 * @param string $password Password of user.
 * @return string Filtered $welcome_email with $password replaced by '[User Set]'.
 */
function bp_core_filter_blog_welcome_email($welcome_email, $blog_id, $user_id, $password)
{
    // Don't touch the email when a user is registered by the site admin.
    if (is_admin()) {
        return $welcome_email;
    }
    // Don't touch the email if we don't have a custom registration template
    if (!bp_has_custom_signup_page()) {
        return $welcome_email;
    }
    // [User Set] Replaces $password in welcome email; Represents value set by user
    return str_replace($password, __('[User Set]', 'buddypress'), $welcome_email);
}
开发者ID:danielcoats,项目名称:schoolpress,代码行数:28,代码来源:bp-core-filters.php


示例7: geodir_buddypress_gdsignup_redirect

/**
 * Redirect away from gd signup if BP registration templates are present.
 *
 * @since 1.0.0
 * @package GeoDirectory_BuddyPress_Integration
 */
function geodir_buddypress_gdsignup_redirect()
{
    if (!get_option('geodir_buddypress_bp_register')) {
        return;
    }
    // Bail in admin or logged in
    if (is_admin() || !bp_has_custom_signup_page() || is_user_logged_in()) {
        return;
    }
    $geodir_signup = !empty($_GET['geodir_signup']) ? true : false;
    $sign_up = !empty($_GET['page1']) && trim($_GET['page1']) == 'sign_up' ? true : false;
    // Not at the WP core signup page and action is not register
    if (!empty($_SERVER['SCRIPT_NAME']) && false !== strpos($_SERVER['SCRIPT_NAME'], 'index.php') && $geodir_signup) {
        // adds class to gd signup page
        add_filter('body_class', 'geodir_buddypress_body_class', 100);
        add_action('wp_head', 'geodir_buddypress_custom_style');
        add_action('login_form', 'geodir_buddypress_login_form');
        if (!$sign_up) {
            return;
        }
    } else {
        return;
    }
    bp_core_redirect(bp_get_signup_page());
}
开发者ID:poweronio,项目名称:mbsite,代码行数:31,代码来源:gdbuddypress_functions.php


示例8: bp_get_signup_page

	function bp_get_signup_page() {
		global $bp;

		if ( bp_has_custom_signup_page() )
			$page = $bp->root_domain . '/' . BP_REGISTER_SLUG;
		else
			$page = $bp->root_domain . '/wp-signup.php';

		return apply_filters( 'bp_get_signup_page', $page );
	}
开发者ID:n-sane,项目名称:zaroka,代码行数:10,代码来源:bp-core-templatetags.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP bp_has_forum_topic_posts函数代码示例发布时间:2022-05-24
下一篇:
PHP bp_has_blogs函数代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap