How to add admin notice after redirect
-
I wanna add an admin notice by
admin_notices
after the redirect bywp_safe_redirect
. But I cannot put any code after thewp_safe_redirect
because it should always come withexit
.I found this method which passes a query string to the URL.
My question is what would happen to the database? Because the query string will pass to the database, right?
Let’s say I pass
?success=yes
likewp_safe_redirect ( 'https://www.testing.com?success=yes' )
, thesuccess
actually doesn’t exist in the database? I just wonder if this causes any security problem?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to add admin notice after redirect’ is closed to new replies.