Add cap checks for view_product_stats. #2038
Merge branch 'release/2.0' into issue/2038
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