Created
October 13, 2017 10:21
-
-
Save grantalltodavid/fff38b87f333eaf68713390543d94d73 to your computer and use it in GitHub Desktop.
Sliced Invoices: remove rate field from showing
This file contains 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
add_filter( 'sliced_invoice_line_items_output', 'sliced_invoice_line_items_output_20171013' ); | |
function sliced_invoice_line_items_output_20171013( $output ) { | |
// remove rate field from showing | |
$regex = array( | |
'#<th class="rate">(.*?)</th>#', | |
'#<td class="rate">(.*?)</td>#' | |
); | |
$output = preg_replace( $regex, '', $output ); | |
return $output; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment