Skip to content

Instantly share code, notes, and snippets.

@codersaiful
Created January 30, 2024 12:58
hide-zero-price-product-from-table.php
<?php
//Use following code. You can use it using code snippet plugin or in your theme’s functions.php file.
add_action('wpt_table_row',function($Row){
$price = $Row->product_data['price'] ?? 'no_price';
if( empty( $price )){
$Row->display = false;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment