Try with this code snippet to bold the billing company name on the documents:
/**
* PDF Invoices & Packing Slips for WooCommerce:
* Bold the Billing Company name on the documents
*/
add_filter( 'wpo_wcpdf_billing_address', function( $address, $document ){
if ( $order = $document->order ) {
if ( $company_name = $order->get_billing_company() ) {
$address = str_replace( $company_name, "<strong>{$company_name}</strong>", $address );
}
}
return $address;
}, 999, 2 );
Another way to achieve this is using the Address customization area, included in Professional extension. This allows you to customize both the billing and shipping addresses, using several placeholders available (you can add custom fields as well!):
You can use HTML to format and apply styles to your billing and shipping address.
Please note that, since www.remarpro.com does not allow us to provide support for paid plugins, or answering pre-sale questions in this forum, please contact us by email to?[email protected], if you have further questions regarding the Professional extension.