I cannot find any way to replace automatically an url with a new url which has a “?” in its URL :-( It get just cut off everything after the first “?” including the “?” too eachtime I tried it.
How to handle this issue?
I cannot find any way to replace automatically an url with a new url which has a “?” in its URL :-( It get just cut off everything after the first “?” including the “?” too eachtime I tried it.
How to handle this issue?
If you are appending any parameters to the url you should use add_query_args https://developer.wordpress.org/reference/functions/add_query_arg/