bbp_get_redirect_to

Return the unescaped redirect_to request value.

Description

(string) bbp_get_redirect_to(); 

Returns (string)

The URL to redirect to, if set


Usage

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

Defined (1)

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

/includes/common/functions.php  
  1. function bbp_get_redirect_to() { 
  2. $retval = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : ''; 
  3.  
  4. return apply_filters( 'bbp_get_redirect_to', $retval );