Activating a theme introduces error ‘Call to undefined function autozone_is_woo_page()’

Question

when I activate a theme, I get this error

Fatal error: Uncaught Error: Call to undefined function autozone_is_woo_page() in /home/u9065372/xxxx.com/wp-content/themes/autozone/header.php:29 Stack trace:
#0 /home/u9065372/xxxx.com/wp-includes/template.php(723): require_once()
#1 /home/u9065372/xxxx.com/wp-includes/template.php(672): load_template(‘/home/u9065372/…’, true)
#2 /home/u9065372/xxxx.com/wp-includes/general-template.php(41): locate_template(Array, true)
#3 /home/u9065372/xxxx.com/wp-content/themes/autozone/index.php(23): get_header()
#4 /home/u9065372/xxxx.com/wp-includes/template-loader.php(106): include(‘/home/u9065372/…’)
#5 /home/u9065372/xxxx.com/wp-blog-header.php(19): require_once(‘/home/u9065372/…’)
#6 /home/u9065372/xxxx.com/index.php(17): require(‘/home/u9065372/…’)
#7 {main} thrown in /home/u9065372/xxxx.com/wp-content/themes/autozone/header.php on line 29“`

and that line is from header.php is down below

if( class_exists( 'WooCommerce' ) && autozone_is_woo_page() && autozone_get_option('autozone_woo_header_global','1') ){
    $post_ID = get_option( 'woocommerce_shop_page_id' ) ? get_option( 'woocommerce_shop_page_id' ) : $post_ID;
}

can you help me with that please?

0
, Caglar Dinc 3 years 2020-07-19T00:10:37-05:00 0 Answers 62 views 0

Leave an answer

Browse
Browse