You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,11 @@ Set the URL to redirect to upon successfully logging in. Defaults to `admin_url(
62
62
63
63
> Note: The redirect is executed using [`wp_safe_redirect`](https://developer.wordpress.org/reference/functions/wp_safe_redirect/) which restricts the destination URL using a list of allowed hosts. By default, this is limited to the domain of the site, but can be extended using the [`allowed_redirect_hosts`](https://developer.wordpress.org/reference/hooks/allowed_redirect_hosts/) filter.
64
64
65
+
66
+
#### `--prefix=<path>`
67
+
68
+
Optionally prepend a path prefix to the magic link URL. Defaults to `/`.
69
+
65
70
#### `--url-only`
66
71
67
72
Outputs the created sign-in URL only. Great for scripting, piping to your clipboard, or anything else you can think of.
@@ -86,6 +91,10 @@ Email a magic sign-in link to the given user. Sends a nice HTML email to the us
86
91
87
92
[See above.](#--redirect-urlurl)
88
93
94
+
#### `--prefix=<path>`
95
+
96
+
[See above.](#--prefix-path)
97
+
89
98
#### `--subject=<email-subject>`
90
99
91
100
Optionally override the default email subject with your own custom string. You may use the `{{ domain }}` placeholder.
0 commit comments