bbp_make_ftps_clickable

Make FTP clickable in content areas.

Description

(string) bbp_make_ftps_clickable( (string) $text = '' ); 

Returns (string)

Parameters (1)

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

Usage

  1. if ( !function_exists( 'bbp_make_ftps_clickable' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/common/formatting.php'; 
  3.  
  4. // The text. 
  5. $text = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_make_ftps_clickable($text); 
  9.  

Defined (1)

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

/includes/common/formatting.php  
  1. function bbp_make_ftps_clickable( $text = '' ) { 
  2. return preg_replace_callback( '#([\s>])((www|ftp)\.[\w\\x80-\\xff\#$%&~/.\-;:=, ?@\[\]+]+)#is', '_make_web_ftp_clickable_cb', $text );