bp_blogs_creation_location( string $url )

Ensure that the ‘Create a new site’ link at wp-admin/my-sites.php points to the BP blog signup.

Description

Parameters

$url

(string) (Required) The original URL (points to wp-signup.php by default).

Return

(string) The new URL.

Source

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

function bp_blogs_creation_location( $url ) {

	/**
	 * Filters the 'Create a new site' link URL.
	 *
	 * @since BuddyPress 1.6.0
	 *
	 * @param string $value URL for the 'Create a new site' signup page.
	 */
	return apply_filters( 'bp_blogs_creation_location', trailingslashit( bp_get_blogs_directory_permalink() . 'create' ), $url );
}

Questions?

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.