Output a “Create a Site” link for users viewing their own profiles.


This function is not used by BuddyPress as of 1.2, but is kept here for older themes that may still be using it.


File: bp-blogs/bp-blogs-template.php

function bp_create_blog_link() {

	// Don't show this link when not on your own profile.
	if ( ! bp_is_my_profile() ) {

	 * Filters "Create a Site" links for users viewing their own profiles.
	 * @since BuddyPress 1.0.0
	 * @param string $value HTML link for creating a site.
	echo apply_filters( 'bp_create_blog_link', '<a href="' . trailingslashit( bp_get_blogs_directory_permalink() . 'create' ) . '">' . __( 'Create a Site', 'buddyboss' ) . '</a>' );


We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.