bbp_redirect_to_field

  • apply_filters( 'bbp_redirect_to_field', $redirect_field, $redirect_to )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-template.php :: Trac Source Line: 761
      	// Make sure we are directing somewhere
      	if ( empty( $redirect_to ) )
      		$redirect_to = home_url( isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '' );
      
      	// Remove loggedout query arg if it's there
      	$redirect_to    = (string) esc_attr( remove_query_arg( 'loggedout', $redirect_to ) );
      	$redirect_field = '<input type="hidden" name="redirect_to" value="' . $redirect_to . '" />';
      
      	echo apply_filters( 'bbp_redirect_to_field', $redirect_field, $redirect_to );
      }
      
      /**
       * Echo sanitized $_REQUEST value.
       *
       * Use the $input_type parameter to properly process the value. This
       * ensures correct sanitization of the value for the receiving input.
       *
       * @since bbPress (r2815)
       *
      

Comments are closed.