@wordpress/url
Version:
WordPress URL utilities.
15 lines • 437 B
TypeScript
/**
* Removes arguments from the query string of the url
*
* @param url URL.
* @param args Query Args.
*
* @example
* ```js
* const newUrl = removeQueryArgs( 'https://wordpress.org?foo=bar&bar=baz&baz=foobar', 'foo', 'bar' ); // https://wordpress.org?baz=foobar
* ```
*
* @return Updated URL.
*/
export declare function removeQueryArgs(url: string, ...args: string[]): string;
//# sourceMappingURL=remove-query-args.d.ts.map