Last active
June 15, 2022 20:08
-
-
Save lucasprogamer/bdcd584c6b7bcb9161ad8fe842b8ab20 to your computer and use it in GitHub Desktop.
Add collumn to metabox of invoices woocomerce
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
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