Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add collumn to metabox of invoices woocomerce
add_action( 'woocommerce_admin_order_item_headers', 'collumn_invoice_header' );
function collumn_invoice_header($order){
?>
<th class="line_produtor_title sortable" data-sort="your-sort-option">
name collumn
</th>
<?php
}
add_action( 'woocommerce_admin_order_item_values', 'collumn_invoice_content' );
function collumn_invoice_content( $product ) {
?>
<td class="line_produtor_title">
<?php //content ?>
</td>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.