try this :
// constructing URL
$url = add_query_arg(["submission" => "success"]);
// redirection
wp_redirect($url);
exit();
Related Posts:
- How can I modify the permalink via a filter?
- Newbie question: no index.php? in my plain wordpress permalink
- Change links automatically to affiliate links
- Rewrite sub folder dynamically with country code in WordPress using PHP
- Use WordPress’ URL rewrite engine
- Rename “Portfolio” slug?
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- Static variable and add_rewrite_rule?
- Nesting if statements to echo only one string based on what tag was filtered?
- How to change home or site url using action hooks or filter?
- Why do WordPress rewriites seem to work differently for posts vs pages?
- Performance impact of rewriting WordPress URLs
- Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?
- Changes in permalink structure in WordPress and how to apply to in-site links
- WordPress Persistent connection rule does not work for “posts”
- Append query string to all URL’s
- custom rewrite rule help! Custom rewrite rules not applying to custom post type
- subdirectory index.php is not working
- Use URL Rewrite as well as $_GET parameters in URL?
- parts of url disappear when using # inside href=”” [closed]
- Create custom permalinks to show Custom Post Type’s relationship?
- Add .htm extention to a custom taxonomy
- Help with .htaccess and Login with Subfolders
- WordPress add_rewrite_rules for custom URLs ending in .html
- Rewrite with pagination /foo/page/2/ to posts of a given category, page 2
- Divi change project category slug
- How to add a rewrite endpoint to unattached media?
- How do i add slugs to a URL, but still redirecting to the same page
- Nginx WordPress and another Web app URL structure
- Custom post type url Rewrite (conflicting with page url)
- WordPress Rewrite Rule
- Why is home page content not displaying with this rewrite rule?
- Modifying WP URL handing code?
- How to deal with a GET variable of ‘name’?
- How to define a rule in functions.php that ONLY disables the default wp functionality that undesirably changes ‘&’ to ‘#038;’?
- How to pass username in affiliate link in wordpress website
- Test the existence of a page/article by its URL, taking in consideration the URL rewriting by filters
- url not using query string no longer working
- Current WordPress Page Title as Search Parameter into A Tag
- How does one make a URL return dynamic JSON with custom Content Type?
- URL rewrite rule
- How does WordPress rewrite URLS using its PHP scripts
- How can I turn a url with get method as a clean url with segment as the get method?
- WordPress Rewrite Issue
- How to print redirected query string variables to the page?
- Multiple URL from Custom post name
- Why isn’t my custom function kicking in from my functions.php file?
- Difference in Get Variable Location
- WordPress adding in site URL to header links
- Dynamically append custom post type to end of url
- WordPress add parameters with friendly url structure
- Custom taxonomy with page post type – WordPress
- Remove slug of multiple custom post types with and without hierarchical
- How to Dynamically Change the author_base URL Slug by Language in WordPress?
- WordPress add_rewrite_rule not working with page_on_front
- Where can I create a normal php file?
- WooCommerce Tabs [closed]
- Log in / Log Out Custom Button
- PHP echoes value without the use of echo
- Limit checklist by the current user
- Get URL from shortcode tag
- Adding Meta Tags to a Post using its Tags, Excerpt and content
- Thumbnails appear to be zoomed
- Display WordPress Post Content in 3 Columns
- Where is wp() function definition?
- Using the_excerpt() on a page
- Embedding PHP in shortcode $content
- Help solving t_echo php error while using echo do_shortcode
- WordPress Stripping Colons?
- How i can obtain all the post meta for a specific post as an array?
- Alter required message using comment form api
- Custom Field IF/ELSE PHP
- Use PHP in stylesheet to specify a background image based on Category ID
- WordPress function when file is uploaded, deleted or edited
- Fatal error: Call to a member function query() on a non-object
- How to debug this search & replace strings snippet?
- Why does wp_head hook my functions to the beginning of my source code?
- Noscript not working as it should in wordpress site
- WordPress Ajax Call inserting data but success response false
- How to optimize the IF condition with many conditions and same output [closed]
- add_action taking an array with the 2nd argument?
- Pass argument to event hook
- Can’t print Yoast meta description into page template (syntax error, unexpected ‘.’) [closed]
- Show latest posts in a plain HTML website custom widget [closed]
- Parse error: syntax error, unexpected ‘}’ surrounding a while
- Can WP plugins access files outside the installation folder?
- How to replace file_get_contents() with a WordPress Filesystem call
- How to Return in WordPress Function php file?
- Shortcode with PHP issue “Undefined index”
- Loading php file with AJAX in WordPress frontend
- Call to undefined function mysql_connect() After upgrading PHP 7.1 to 7.3
- Using same variable names in files added with get_template_part()
- Hide Featured Image Meta Box on Editor Screen
- List posts that don’t have a specific tag?
- Issues when changing == to ===
- get href content [closed]
- Inline style to PHP [closed]
- How to get Post Type from the functions.php file
- Copyright info change – Corporate Plus Theme PHP [closed]
- Inject class in body when particular page template is used