Product reviews are not showing on a product page in admin.
-
Visiting product page via admin panel no reviews are showing up at Reviews meta box, but reviews actually exist on Reviews page. I’ve debugged code and the issue is as following:
After Product page in admin is loaded it’s trying to fetch comments (reviews) via ajax. Native wp PHP code is executing:
$args = apply_filters( ‘comments_list_table_query_args’, $args );
This code is hooked with Woocommerce method exclude_reviews_from_comments (file ReviewsCommentsOverrides.php) and makes what it is supposed to make – excludes product post type from the comments query.
So why this hook is triggered when user is visiting Product page in admin?
Also when adding review manually via admin, rating option is missing, but everything works fine on front-end.
- The topic ‘Product reviews are not showing on a product page in admin.’ is closed to new replies.