bbp_new_reply_redirect_to

  • apply_filters( 'bbp_new_reply_redirect_to', $reply_url, $redirect_to )

    Source Reference:

    • Component: bbPress :: bbp-reply
      File: /bbp-includes/bbp-reply-functions.php :: Trac Source Line: 298
      			/** Redirect ******************************************************/
      
      			// Redirect to
      			$redirect_to = !empty( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '';
      
      			// Get the reply URL
      			$reply_url = bbp_get_reply_url( $reply_id, $redirect_to );
      
      			// Allow to be filtered
      			$reply_url = apply_filters( 'bbp_new_reply_redirect_to', $reply_url, $redirect_to );
      
      			/** Successful Save ***********************************************/
      
      			// Redirect back to new reply
      			wp_safe_redirect( $reply_url );
      
      			// For good measure
      			exit();
      
      		/** Errors ************************************************************/
      

Comments are closed.