Fix for #976
Declare `wc_reviews_enabled()` and `wc_reviews_enabled()` on frontend only.
This commit is contained in:
parent
577eea7f47
commit
2334f6a9c4
|
@ -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.
|
||||
*
|
||||
|
|
Reference in New Issue