Declare `wc_reviews_enabled()` and `wc_reviews_enabled()` on frontend only.
This commit is contained in:
IanDelMar 2019-05-18 10:36:25 +02:00 committed by GitHub
parent 577eea7f47
commit 2334f6a9c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ if ( ! function_exists( 'understrap_wc_form_field_args' ) ) {
}
}
if ( ! function_exists( 'wc_review_ratings_enabled' ) ) {
if ( ! is_admin() && ! function_exists( 'wc_review_ratings_enabled' ) ) {
/**
* Check if reviews are enabled.
*