i want to show a custom text in orders preview in WooCommerce.
I found that public function render_billing_address_column in
includes/admin/list-tables/class-wc-admin-list-table-orders.php
i could modify the code and add some text there but im looking for way for doing this in another custom plugin
if ( order had this specification ) {
echo 'my custom text;
}
2
Answers
thank you MrEbabi your code goes to function and worked well. also if someone want to read $post_meta from a order and do something they could done it with below code
You can use either of these hooks:
woocommerce_admin_order_preview_start
orwoocommerce_admin_order_preview_end
like this:or
or adding a custom column with custom text:
or edit a specific column by adding custom text: