bb_rel_nofollow_callback

The BuddyPress bb rel nofollow callback function.

Description

bb_rel_nofollow_callback( $matches ); 

Parameters (1)

0. $matches
The matches.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-formatting.php  
  1. function bb_rel_nofollow_callback( $matches ) { 
  2. $text = $matches[1]; 
  3. $text = str_replace(array(' rel="nofollow"', " rel='nofollow'"), '', $text); 
  4. return "<a $text rel=\"nofollow\">";