|
/ Documentation /Global Checkout/ How to Use Global Checkout Filter?

How to Use Global Checkout Filter?

From the Update v1.3.3, we have provided a filter using which you will be able to redirect your users from the Global Checkout page to another Custom Page.

Below is the filter using which you can redirect your users to a Custom Page –

/**
 * Change the URL of the Global Checkout page.
 * @param link $link of your global checkout page.
 * @return link $your_link of your custom page.
 */

add_filter( 'cartflows_global_checkout_url', 'your_callback_function' );
function your_callback_function( $link ){ 
    // Return your custom page URL. 
    return  $your_link = get_permalink( $post->ID ); // Add your custom page's post ID
}

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page
Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Free Cartflows Form - Popup

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.