I want to change the title from the checkout page. But I just can change the label and the placeholder.
// 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'] = 'Please type your PO number here and we will add it to the invoice.';
$fields['order']['order_comments']['label'] = '';
return $fields;
}
https://docs.woocommerce.com/document/editing-product-data-tabs/#
As it stands there is not hook to change the section title. But here’s the hack if you are desperate enough to make the modification.
Edit this line:
This solution worked for me:
The documentation of Woocommerce is not complety…
https://docs.woocommerce.com/document/editing-product-data-tabs/
You would check condition about the callback before add or replace some value in array, otherwise the tab will display with nothing inside.
Why ? because the developper Woocommerce will check the content of array in the tab template
(version 3.8.0) (WC
This worked for me if anyone is still after this change