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
- 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
- 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
- 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
- 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
- Can’t access my WP dashboard: fatal error? [closed]
- What’s the _wp_desired_post_slug value for?
- reorder plugin menu position
- 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
- WordPress Shortcode to get URL Parameters $_GET[‘name’] redirects for no reason at all
- 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
- 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
- Editing a text file from plugin menu
- WordPress Admin Menu defining function is seperate file
- Edit Permalink Structure For Custom Post Type or Modify .htaccess?
- 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
- add_submenu_page returns null
- Add to array, redirect and display
- Plugin – Admin menu page broken url
- How do I add an options page at the bottom of the list?
- How to remove a CPT Menu from the Root Admin only
- Show WordPress Plugin Menu(Admin) To Editor
- Add logo to admin menu in my plugin
- Conditional custom redirect
- How do you add a settings page to another menu?
- PHP mobile redirect Endless loop
- How to force load a page in plugin?
- Custom page in plugin visible in menu
- wp redirect 301 not working in wordpress page
- Preserve Search engine index while shifting to new Domain
- Adding custom Field To The Posts Listing
- Janrain/Simple Modal under Redirected Domain
- Redirect unloggedin users
- Creating an admin button that when clicked shows a popup form
- Identify User Language, Redirect to the corresponding page and Save the chosen language as Cookie
- Display value of the GET parameter in a new URL page
- add menu page not showing Icon
- Can’t add new plugin or themes on a wordpress multisite network from the primary site as administrator. Error: ERR_TOO_MANY_REDIRECTS
- How to update all in-site redirect URLs to destination URLs at once
- WordPress Admin login redirect to homepage
- Reverse count page view and show on other page
- Custom Icon assigned to menu items not working for multi-site networks
- Admin menu hilighting wrong item for CPT
- Creating Admin Submenu Page via Class Method
- .htaccess file doesn’t work, with hundred tries
- Identify if the_post hook is being called from the admin post list
- Infinite 301 redirects after definitions in “Redirections” plugin?
- Clone a Post Tite and Custom Field into Custom Post type
- Plugin option for input box validation
- Direct URL to a template via plugin
- 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
- 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
- URL Redirect on GoDaddy platform [closed]
- Redirecting to page on form submit – Revue plugin
- Page with redirect
- admin_enqueue_scripts using hook_suffix vs GET page
- Submitting form to admin-post.php WordPress