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