bp_blogs_creation_location

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

Description

(string) bp_blogs_creation_location( (string) $url ); 

Returns (string)

The new URL.

Parameters (1)

0. $url (string)
The original URL (points to wp-signup.php by default).

Usage

  1. if ( !function_exists( 'bp_blogs_creation_location' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-blogs/bp-blogs-filters.php'; 
  3.  
  4. // The original URL (points to wp-signup.php by default). 
  5. $url = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_blogs_creation_location($url); 
  9.  

Defined (1)

The function is defined in the following location(s).

/bp-blogs/bp-blogs-filters.php  
  1. function bp_blogs_creation_location( $url ) { 
  2.  
  3. /** 
  4. * Filters the 'Create a new site' link URL. 
  5. * @since 1.6.0 
  6. * @param string $value URL for the 'Create a new site' signup page. 
  7. */