Skip to content

Instantly share code, notes, and snippets.

@pramodjodhani
Created November 21, 2022 13:21
Show Gist options
  • Save pramodjodhani/abf143870e2c8c462db4dfa7fcc4f587 to your computer and use it in GitHub Desktop.
Save pramodjodhani/abf143870e2c8c462db4dfa7fcc4f587 to your computer and use it in GitHub Desktop.
<?php
/**
* Modify "Continue Shopping" button URL on the Flux Thank You page.
*
* @param string $shop_url Shop page url.
*
* @return string
*/
function flux_checkout_change_shop_page_url( $shop_url ) {
if ( ! Iconic_Flux_Core::is_thankyou_page() ) {
return $shop_url;
}
// TODO change this URL.
return 'https://site.com/my-custom-shop-page';
}
add_filter( 'flux_checkout_shop_page_url', 'flux_checkout_change_shop_page_url' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment