Woocommerce 更改“";您必须登录才能结账。”;
大家好,请告诉我如何更改woocommerce的默认文本消息“您必须登录才能结帐”。在结帐页面,我会用自己的文本消息“您必须登录或注册才能参加比赛” 先谢谢你Woocommerce 更改“";您必须登录才能结账。”;,woocommerce,Woocommerce,大家好,请告诉我如何更改woocommerce的默认文本消息“您必须登录才能结帐”。在结帐页面,我会用自己的文本消息“您必须登录或注册才能参加比赛” 先谢谢你 我在这里等待一个漂亮的答复/..您可以尝试下面的代码 function custom_woocommerce_checkout_must_be_logged_in_message( $var ) { return 'You have to login or register to join contests'; } a
我在这里等待一个漂亮的答复/..您可以尝试下面的代码
function custom_woocommerce_checkout_must_be_logged_in_message( $var ) {
return 'You have to login or register to join contests';
}
add_filter( 'woocommerce_checkout_must_be_logged_in_message', 'custom_woocommerce_checkout_must_be_logged_in_message', 10, 1 );
代码放入当前子主题的functions.php中