blp_change_translate_text

The bbP last post blp change translate text function.

Description

blp_change_translate_text( $translated_text, $text, $domain ); 

Parameters (3)

0. $translated_text
The translated text.
1. $text
The text.
2. $domain
The domain.

Usage

  1. if ( !function_exists( 'blp_change_translate_text' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbp-last-post/includes/functions.php'; 
  3.  
  4. // The translated text. 
  5. $translated_text = null; 
  6.  
  7. // The text. 
  8. $text = null; 
  9.  
  10. // The domain. 
  11. $domain = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = blp_change_translate_text($translated_text, $text, $domain); 
  15.  

Defined (1)

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

/includes/functions.php  
  1. function blp_change_translate_text( $translated_text, $text, $domain ) { 
  2. $testtext = 'Freshness' ; 
  3. $testdomain = 'bbpress' ; 
  4. if ( ($text == $testtext) && ($domain == $testdomain) ) { 
  5. global $rlp_options; 
  6. $translated_text = __( $rlp_options['heading_label'], $testdomain ); 
  7.  
  8. return $translated_text;