Friday, December 9, 2022
HomeWordPress Developmentwp enqueue script - WordPress - Discover: Perform wp_enqueue_script was known as...

wp enqueue script – WordPress – Discover: Perform wp_enqueue_script was known as incorrectly


I’ve up to date the theme and now I get the message: Discover: Perform wp_enqueue_script was known as incorrectly.

I assume it has to do with code in my baby theme. I’ve this sort of code – if I take away it, it really works once more.

perform flatsome_checkout_breadcrumb_class($endpoint){
$lessons = array();
if($endpoint == 'cart' && is_cart() ||
    $endpoint == 'checkout' && is_checkout() && !is_wc_endpoint_url('order-received') ||
    $endpoint == 'order-received' && is_wc_endpoint_url('order-received')) {
    $lessons[] = 'present';
} else{
    $lessons[] = 'hide-for-small';
}
return implode(' ', $lessons);
}

Is there a purpose why this code doesn’t work? And the way can I repair it?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments