📌  相关文章
📜  wordpress 添加到购物车重定向 php 代码示例

📅  最后修改于: 2022-03-11 14:53:59.402000             🧑  作者: Mango

代码示例1
add_filter ('add_to_cart_redirect', 'redirect_to_checkout');

function redirect_to_checkout() {
    global $woocommerce;
    $checkout_url = $woocommerce->cart->get_checkout_url();
    return $checkout_url;
}