bbp_get_form_reply_to

Return the value of reply to field.

Description

(string) bbp_get_form_reply_to(); 

Returns (string)

Value of reply to field


Usage

  1. if ( !function_exists( 'bbp_get_form_reply_to' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/replies/template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bbp_get_form_reply_to(); 
  7.  

Defined (1)

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

/includes/replies/template.php  
  1. function bbp_get_form_reply_to() { 
  2.  
  3. // Set initial value 
  4. $reply_to = 0; 
  5.  
  6. // Get $_REQUEST data 
  7. if ( isset( $_REQUEST['bbp_reply_to'] ) ) { 
  8. $reply_to = bbp_validate_reply_to( $_REQUEST['bbp_reply_to'] ); 
  9.  
  10. // If empty, get from meta 
  11. if ( empty( $reply_to ) ) { 
  12. $reply_to = bbp_get_reply_to(); 
  13.  
  14. return (int) apply_filters( 'bbp_get_form_reply_to', $reply_to );