Ecommerce Shopify WordPress Discussion

"woocommerce_get_checkout_url" hook is not working

` I have created as plugin for wordpress, i have used "woocommerce_get_checkout_url" hook to change checkout button redirection. It is working fine in older versino of wordpress, but not working in wordprss verion 6.4.3 Here is a code. add_filter( 'woocommerce_get_checkout_url', 'custom_checkout' ); function custom_checkout(){ if ( isset( $\_SESSION\['ReturnURL'\] ) ){ return get_home_url() . '/customcheckout'; } else { return get_home_url() . '/checkout'; } } Anybody can suggest, what can we do for that ? We have also tried: add_filter( 'woocommerce_get_checkout_url', 'custom_checkout', 30 ); and add_filter( 'woocommerce_get_checkout_url', 'custom_checkout', 1, 100 ); but it is not working in wordpress 6.4.3
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.