bb_admin_link

The BuddyPress bb admin link function.

Description

bb_admin_link( (string) $args = '' ); 

Parameters (1)

0. $args — Optional. (string) => ''
The args.

Usage

  1. if ( !function_exists( 'bb_admin_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-template.php'; 
  3.  
  4. // The args. 
  5. $args = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_admin_link($args); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_admin_link( $args = '' ) { 
  2. if ( !bb_current_user_can( 'moderate' ) ) 
  3. return; 
  4. echo apply_filters( 'bb_admin_link', bb_get_admin_link( $args ), $args );