Simply use add_query_arg()
, remove_query_arg()
and get_query_var()
.
On your page link, you use a simple query var like step=one
.
$query_arg = add_query_arg( 'step', 'one', $_SERVER['REQUEST_URI'] );
Then, when the user processed the form, you just reload the page. Then simply check if
0 !== get_query_var( 'step' )
AND 'one' !== get_query_var( 'step' )
and process further. If you want to go back, just use remove_query_arg()
, etc.
Related Posts:
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- Redirection plugin – how to let the editor access the ‘redirection’ menu?
- Admin menu as submenu from another plugin
- SSL redirect loop using WordPress HTTPS Plugin
- Creating a WordPress admin page without a menu for a plugin
- Removing an admin page added by a 3rd party plugin. Gravity forms in this example
- Redirection Plugin: Redirect all URLs with a regular expression
- Delete option doesn’t appear for plugins
- Adding an admin page – OOP approach not working
- Generate Advanced Custom Fields box in custom admin menu page
- Plugin development: how to create a form and get custom data?
- flush_rewrite_rules not working on plugin deactivation, invalid URLs not showing 404
- Can Not Redirect from Plugin-Registered Admin Page
- Detecting $_GET parameters from any page + Cookie
- Master menu item for multiple plugins?
- How to send “Location” header on plugin form submit event?
- Custom url structure for custom template
- How to make a WP admin button/menu similar to Jetpack Notifications?
- wp_verify_nonce() why return false?
- Detecting when a custom taxonomy has been changed and display alert?
- wordpress custom login successful redirect hook
- Sub menu with a URL parameter and access the page
- Removing WordPress Plugin Menu Item for a specific user
- Can’t access my WP dashboard: fatal error? [closed]
- add function to saving change on Options Pages
- How to redirect Old Post URL to new Post and keep Old post Comments?
- What’s the _wp_desired_post_slug value for?
- Redirect all blog links from WordPress.com site to new domain
- Change the $parent_file of a plugin page
- reorder plugin menu position
- How do I remove the entire left nav bar in admin for certain level users?
- Hide Theme options and Customize Admin menu
- How to send little data between admin pages of my plugin?
- How does automatic redirection for the redirection plugin work?
- Changed permalink structure. Need help with redirecting old posts
- WordPress Redirect Not Working – AJAX Callback Response Not Picked Up
- Landing Page Redirect Chain | http->https->https www
- White page on custom plugin option submit
- Make menu page link inaccessible or disabled
- How can I check if on specific plugin generated page or child
- Redirection based on location but without affecting search bots
- Page Restriction and Redirect for Particular Levels or user
- how to create site exit messages with destination url displayed
- How to redirect a URL with parameters?
- WordPress Shortcode to get URL Parameters $_GET[‘name’] redirects for no reason at all
- Redirecting a buddyboss profile tab to a different tab if not subscribed to a specific membership
- Redirect already logged in users away from a page to a specific page base on user role
- How to fix the woocommerce – adaranth.com redirection issue [closed]
- Show existing POST categories as items in the sidebar menu [closed]
- Polylang : Interverting languages after development [closed]
- Redirecting thousands of posts that currently have no category in their permalink when changing permalink structure to include category
- Suggestions on Approach to New Plugin I’m Stuck On
- Dynamic admin submenu
- WP Plugins – Use includes to display page content
- Add menu page issues (permissions & position)
- How to use login_redirect with a user capability
- How to use add_submenu_page() for editors?
- What’s causing this error? “Warning: Invalid argument”
- Removing Automatic Redirects Without Plugin
- Move plugin-settings to ‘Settings’-menu in the admin
- Editing a text file from plugin menu
- WordPress 4.3 broke meta redirect (with url params plugin)
- WordPress Admin Menu defining function is seperate file
- Edit Permalink Structure For Custom Post Type or Modify .htaccess?
- creating a plug in that would tap into save/update action of posts [closed]
- Mask and Track Outbound Links
- Display Plugin Panels Outside of Admin Areas
- How can I redirect some pages to new subdomain? [closed]
- Why WP_Screeen doesn’t show all options with admin_body_class
- Plugin Admin Menu Boiler Plate
- add_submenu_page returns null
- Add to array, redirect and display
- Plugin – Admin menu page broken url
- How to redirect from plugin page
- How to add submenu to WordPress plugin in the same Directory of main Plugin?
- Assigning a custom post type to a custom page
- Template redirect inside of plugin not redirecting
- How can I pass value to function in add_menu_page?
- Getting 404 page not found error while trying to access add new plugin / themes
- Can’t redirect to previous page after using GET
- Plugin menu replaced by another plugin?
- Need to change contact email depending where user is from
- Redirect url in plugin to somewhere else?
- How do I to override login redirect on specific pages?
- How to link that “logged in” in “you must be logged in to post a comment” with custom login page on WordPress?
- Simple WordPress function / plugin to redirect a site
- Plugin link does not appear in my toolbar
- URL Redirect on GoDaddy platform [closed]
- Redirecting to page on form submit – Revue plugin
- how to make wordpress remember my choice
- Page with redirect
- admin_enqueue_scripts using hook_suffix vs GET page
- Submitting form to admin-post.php WordPress
- whole website redirected to another page
- Fatal Error in my WP “Call to undefined function get_option()”
- Show different page depending on user role
- add to cart linking to add to cart page
- How to create WordPress login for different users, with different roles?
- Remove custom menu pages for admin users
- wp_logout function not executed