You can use woocommerce_thankyou action to achieve above
add_action( 'woocommerce_thankyou', 'custom_goBack');
function custom_goBack( $order_id )
{
echo '<a href="'.get_home_url().'">Go Back</a>';
}
Related Posts:
- Custom plugin route in WordPress
- Why is ?doing_wp_cron being appended to my URLs
- Change default URL path (/blog/) of blog posts
- How to deal with WordPress on localhost
- How to convert the file path to a URL of the same file?
- Why is WordPress saving full-urls to the database?
- Get taxonomy slug from url
- How to remove /index.php/ from URL’s
- Force the Website URL to Include “www” and to be Upper Case?
- How to remove “http://” When Echoing URL?
- WordPress and $_GET Params
- Why WP encodes UNICODE (UTF8) containing urls? Any drawbacks of UNICODE url?
- Unable to load static front page on home url
- Force home page to be https?
- How do I amend the fixed “author” part in the URL?
- Change homepage url
- get_site_url is not returning anything?
- Check what is at URI (post, archive, etc…)
- Use image url with add_image_size
- Changing my site url from azure.net to custom domain
- Special domain for a page
- How to delete unused URL?
- urlencode query string in gravity forms confirmation redirect
- Pages other than Home page not displayed even when URL is good
- How to server wordpress from SSL and non-SSL URLs
- Author Nickname URL Friendly
- Should I set the html base url when using wordpress?
- Set a custom URL for image in the Media Library?
- How do I test my localhost WordPress project with VirtualBoxVM?
- How do I link to a blog not set as the homepage?
- Updating URLs in many posts
- How to edit URL Slug?
- Save URL into database
- Publish Post when URL is available else reschedule the post in wordpress [duplicate]
- Change url links on members loops in buddypress
- Imported 10 000+ posts, custom field showing link not displayed
- Find file url in post content and add it to media library
- Localhost port is missing on some links after downgrading MAMP [closed]
- rewrite taxonomy-{taxonomy}-{term}.php terms
- Multiple URLs with Numbers
- How to add URL-Parameter for Javascript Widgets?
- previous_posts_link and next_posts_link, how to return the next/previous post’s title as the url
- hijacking home_url for root relative paths
- Get Top parent url
- How to properly print a 404 error without redirecton? (i.e. keeping the current URL)
- hide wp-content from urls
- Can anybody provide me with a function to generate slugs?
- Is there RELATIVE_PATH, like ABSPATH
- Changing the website URL to the root folder
- Accessing WordPress using “localhost” and local ip at the same time
- Open editor post in a popup
- Organizing the Navigation Menu
- Porting site URLs to new host but with same domain name [closed]
- My #id is not showing in the url when the user clicks on the anchor tag
- Showing my server ip in source code for several links not for all links
- What php gets called for home_url/somepage URL?
- An anchor name (id name) in the address bar
- Moving Website-URL
- How to prevent unknown addresses which are accessed from my wordpress website [closed]
- Use wp_redirect to add a parameter
- Extracting a variable from a permalink
- Is there an URL listing latest posts
- After changing the site root, how to reflect this for wp-admin too?
- How can I prepopulate the URL address for the add media button
- How to show Specific URL of WordPress on Any one Specific IP only?
- Adding Parent Categories and keep current URLs
- How to display translated content with custom slug?
- Different url to same page (with dynamic content)
- How rewriting a url to make it SEO friendly
- WordPress option com_jce should not work
- Too many redirects (ERR_TOO_MANY_REDIRECTS) only on one page
- Add a paramter to page url
- WordPress Still Requesting Old Url
- Broken Images and Style
- Why my URL has an unknown character string?
- No url when downloading PDF
- Post not redirecting to non www after changing from www
- i1.wp.com url problem (Jetpack not installed)
- incorrect url in Snippet editor
- Use URL parameter to create dynamic content
- Generate new URL for popup form
- In-page link works in Firefox but not in Chrome
- How to make url variable?
- My website has some Crawling Errors?
- How can I modify the ‘Insert/edit link’ option to offer root-relative urls?
- WordPress Address (URL) Reverts back
- Modify the WordPress URL
- Duplicate pages with ?s parameter
- Populate Website URL at registration time
- WordPress Update Links
- bloginfo no show the right path
- After site transfer I’m still getting redirected to the old site (WordPress)
- help me remove this additional parameter in url
- All font sizes change when manually typing 2011 into url and going to archive page
- apply styling only to a specific url
- URL, which automatically close tab
- How to run Wiki on the same host as WordPress and not get 404 errors when browsing to Wiki?
- Replace media external links with local links
- WordPress URLs changed to relative on transferring server
- My Website’s Main URL redirects me to an Archive Page