How can hide zero price product from table
-
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; } });
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How can hide zero price product from table’ is closed to new replies.