bp_get_blog_create_nav_item

Get the Create a Site nav item.

Description

(string) bp_get_blog_create_nav_item(); 

Returns (string)


Usage

  1. if ( !function_exists( 'bp_get_blog_create_nav_item' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-blogs/bp-blogs-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_get_blog_create_nav_item(); 
  7.  

Defined (1)

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

/bp-blogs/bp-blogs-template.php  
  1. function bp_get_blog_create_nav_item() { 
  2. // Get the create a site button. 
  3. $create_blog_button = bp_get_blog_create_button(); 
  4.  
  5. // Make sure the button is available. 
  6. if ( empty( $create_blog_button ) ) { 
  7. return; 
  8.  
  9. $output = '<li id="blog-create-nav">' . $create_blog_button . '</li>'; 
  10.  
  11. /** 
  12. * Filters the Create A Site nav item output. 
  13. * @since 2.2.0 
  14. * @param string $output Nav item output. 
  15. */