QueryArgs final class
Minn\Runtime\QueryArgs · public/minn/src/Minn/Runtime/QueryArgs.php · 54 lines
Query arguments added to and taken from an address the way WordPress's add_query_arg() and remove_query_arg() do, the current request's address when none is given, and an action's nonce added to one.
Public
| static | add(mixed ...$args): string# | An address with arguments added (add_query_arg): a key and value, or a list of them, then the address (the request's when false or left out). Values are URL-encoded; an empty one leaves its key bare, a false or null one takes the key out. |
| static | remove(mixed $key, mixed $query = false): mixed# | An address with an argument, or each of a list, taken out (remove_query_arg); an empty list gives back what was given. |
| static | withNonce(mixed $actionUrl, mixed $action = -1, mixed $name = '_wpnonce'): string# | An address carrying a nonce for the action (wp_nonce_url), escaped for HTML. |
| static | requestUri(): string# | The request's address as PHP was given it; a runtime built without one gives its request's path and query. |
Nothing matches.