function bp_activation_page($echo = true)
{
    global $bp;
    if (bp_has_custom_activation_page()) {
        if ($echo) {
            echo $bp->root_domain . '/' . BP_ACTIVATION_SLUG;
        } else {
            return $bp->root_domain . '/' . BP_ACTIVATION_SLUG;
        }
    } else {
        if ($echo) {
            echo $bp->root_domain . '/wp-activate.php';
        } else {
            return $bp->root_domain . '/wp-activate.php';
        }
    }
}
/**
 * Get the URL of the activation page.
 *
 * @return string
 */
function bp_get_activation_page()
{
    if (bp_has_custom_activation_page()) {
        $page = trailingslashit(bp_get_root_domain() . '/' . bp_get_activate_slug());
    } else {
        $page = trailingslashit(bp_get_root_domain()) . 'wp-activate.php';
    }
    /**
     * Filters the URL of the activation page.
     *
     * @since 1.2.0
     *
     * @param string $page URL to the activation page.
     */
    return apply_filters('bp_get_activation_page', $page);
}
function xprofile_on_activate_user($user_id, $password, $meta)
{
    xprofile_extract_signup_meta($user_id, $meta);
    if (bp_has_custom_activation_page()) {
        add_action('bp_activation_extras', 'xprofile_handle_signup_avatar', 1, 2);
    } else {
        xprofile_handle_signup_avatar($user_id, $meta);
    }
}
function bp_get_activation_page()
{
    global $bp;
    if (bp_has_custom_activation_page()) {
        $page = trailingslashit(bp_get_root_domain() . '/' . $bp->pages->activate->slug);
    } else {
        $page = trailingslashit(bp_get_root_domain()) . 'nxt-activate.php';
    }
    return apply_filters('bp_get_activation_page', $page);
}
Example #5
0
/**
 * Get the URL of the activation page.
 *
 * @return string
 */
function bp_get_activation_page()
{
    if (bp_has_custom_activation_page()) {
        $page = trailingslashit(bp_get_root_domain() . '/' . bp_get_activate_slug());
    } else {
        $page = trailingslashit(bp_get_root_domain()) . 'wp-activate.php';
    }
    return apply_filters('bp_get_activation_page', $page);
}
Example #6
0
	function bp_get_activation_page() {
		global $bp;

		if ( bp_has_custom_activation_page() )
			$page = trailingslashit( $bp->root_domain ) . BP_ACTIVATION_SLUG;
		else
			$page = trailingslashit( $bp->root_domain ) . 'wp-activate.php';

		return apply_filters( 'bp_get_activation_page', $page );
	}