BP_Core_Members_Switching::remove_query_args( string $url )

Removes a list of common confirmation-style query args from a URL.

Description

Parameters

$url

(string) (Required) A URL.

Return

(string) The URL with query args removed.

Source

File: bp-members/classes/class-bp-core-members-switching.php

	public static function remove_query_args( $url ) {
		if ( function_exists( 'wp_removable_query_args' ) ) {
			$url = remove_query_arg( wp_removable_query_args(), $url );
		}

		return $url;
	}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.