admin管理员组文章数量:1391956
I have this scenario: By default, checkout page is handled by Checkout for WooCommerce plugin, but I need to prevent plugin's template from loading, and load default WooCommerce checkout template if a certain $_GET parameter is provided.
I'm looking in plugin's filters and hooks but can't really find anything helpful.
Can anyone help with a hint please?
I have this scenario: By default, checkout page is handled by Checkout for WooCommerce plugin, but I need to prevent plugin's template from loading, and load default WooCommerce checkout template if a certain $_GET parameter is provided.
I'm looking in plugin's filters and hooks but can't really find anything helpful.
Can anyone help with a hint please?
Share Improve this question asked Mar 11, 2020 at 12:16 Nicolae CojocaruNicolae Cojocaru 11 Answer
Reset to default 0Problem solved, found an undocumented hook - cfw_load_checkout_template
Example usage:
add_action('cfw_load_checkout_template', 'sd_handle_cfw_should_load');
function sd_handle_cfw_should_load($value)
{
if(isset($_GET['sdc_modal'])) {
return false;
}
return $value;
}
本文标签: Checkout fr Woocommerceload default WooCommerce checkout template on the fly
版权声明:本文标题:Checkout fr Woocommerce - load default WooCommerce checkout template on the fly 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744679498a2619314.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论