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 Description


Parameters Parameters

$url

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


Top ↑

Return Return

(string) The new URL.


Top ↑

Source Source

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

function bp_blogs_creation_location( $url ) {

	/**
	 * Filters the 'Create a new site' link URL.
	 *
	 * @since 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 );
}

Top ↑

Changelog Changelog

Changelog
Version Description
1.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.