P粉2695300532023-08-18 14:05:48
This function only returns the $classes
variable if is_shop()
is true, when in fact it should always return the $classes
variable:
function divi_engine_body_class( $classes ) { if ( is_page( 'shop' ) ) { $classes[] = 'woocommerce-page-SGARAGLINO'; } return $classes; }
Filters must always return a value; if they do not return a value, an error will almost always be raised.