bbp_logout_url

  • apply_filters( 'bbp_logout_url', $url, $redirect_to )

    Source Reference:

    • Component: bbPress :: bbp-core
      File: /bbp-includes/bbp-common-functions.php :: Trac Source Line: 1082
      		$redirect_to = home_url( isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '' );
      
      		// Sanitize $redirect_to and add it to full $url
      		$redirect_to = add_query_arg( array( 'loggedout'   => 'true'                    ), esc_url( $redirect_to ) );
      		$url         = add_query_arg( array( 'redirect_to' => urlencode( $redirect_to ) ), $url                    );
      	}
      
      	// Filter and return
      	return apply_filters( 'bbp_logout_url', $url, $redirect_to );
      }
      
      /** Queries *******************************************************************/
      
      /**
       * Adds ability to include or exclude specific post_parent ID's
       *
       * @since bbPress (r2996)
       *
       * @global DB $wpdb
      

Comments are closed.