bp_get_group_create_nav_item

Get the Create a Group nav item.

Description

(string) bp_get_group_create_nav_item(); 

Returns (string)


Usage

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

Defined (1)

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

/bp-groups/bp-groups-template.php  
  1. function bp_get_group_create_nav_item() { 
  2. // Get the create a group button. 
  3. $create_group_button = bp_get_group_create_button(); 
  4.  
  5. // Make sure the button is available. 
  6. if ( empty( $create_group_button ) ) { 
  7. return; 
  8.  
  9. $output = '<li id="group-create-nav">' . $create_group_button . '</li>'; 
  10.  
  11. /** 
  12. * Filters the Create a Group nav item. 
  13. * @since 2.2.0 
  14. * @param string $output HTML output for nav item. 
  15. */ 
  16. return apply_filters( 'bp_get_group_create_nav_item', $output );