I need to remove something from the product page if this product haven’t a description
This my code but i didn’t know how to check if product description empty or no
add_action('wp_enqueue_scripts', 'remove_included_tab_if_description_empty');
function remove_included_tab_if_description_empty() {
echo '<style type="text/css">
.woocommerce-tabs ul.tabs li {
display: none;
}
</style>';
}
Source: Ask PHP