Remove All Query Arg

Question

Is there a way to remove all query arg parameter in the URL added via add_query_arg(); without knowing the query key available for removal?

I’m looking for this kind of function remove_query_arg_all(); currently I’m removing the query_arg via preg_match REQUEST_URI, but not sure if it will cause any problem in the future.

0
nonsensecreativity 2 years 2020-01-06T08:39:14-05:00 0 Answers 93 views 0

Leave an answer

Browse
Browse