📜  从 woocommerve 结帐中删除标签 - 无论代码示例

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

代码示例1
// Hook in
add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );

// Our hooked in function - $fields is passed via the filter!
function custom_override_checkout_fields( $fields ) {
     $fields['order']['order_comments']['placeholder'] = 'My new placeholder';
     $fields['order']['order_comments']['label'] = 'My new label';
     return $fields;
}