Register view_{type}_stats cap
Introduce meta_caps() method to handle meta caps for view_product_stats cap. #2038
Add check for view_product_stats in stats mtabox. #2038