Child theme functions.php is not executing


WordPress + WooCoomerce + Storefront theme + Storefront child theme.

I have the child theme’s functions.php file from previous site development iteration which used to work. After migrating to new hosting I set up from the scratch same set of WordPress + WooCoomerce + Storefront theme + made Storefront child theme. The only diference with previous iteration is set of plug-ins and CSS rules/styling but custom code in functions.php is not touching them at all. Hoever then I copied functions.php from the previous site iteration it seems to be not executed at all. Trying to fix that I plaied a bit with file permissions on OS level: now it is set to rwxrwxrwx (I know it is not safe but I totaly run out of ideas of what is happening)

What might be going wrong with functions.php?

Here goes the functions.php contents

<?php // Exit if accessed directly if ( !defined( 'ABSPATH' ) ) exit;   // BEGIN ENQUEUE PARENT ACTION // AUTO GENERATED - Do not modify or remove comment markers above or below:  if ( !function_exists( 'chld_thm_cfg_locale_css' ) ):     function chld_thm_cfg_locale_css( $  uri ){         if ( empty( $  uri ) && is_rtl() && file_exists( get_template_directory() . '/rtl.css' ) )             $  uri = get_template_directory_uri() . '/rtl.css';         return $  uri;     } endif; add_filter( 'locale_stylesheet_uri', 'chld_thm_cfg_locale_css' );           if ( !function_exists( 'child_theme_configurator_css' ) ):     function child_theme_configurator_css() {         wp_enqueue_style( 'chld_thm_cfg_separate', trailingslashit( get_stylesheet_directory_uri() ) . 'ctc-style.css', array( 'storefront-gutenberg-blocks','storefront-style','storefront-style','storefront-icons','storefront-jetpack-widgets','storefront-woocommerce-style' ) );     } endif; add_action( 'wp_enqueue_scripts', 'child_theme_configurator_css', 30 );  // END ENQUEUE PARENT ACTION   add_filter( 'storefront_credit_link', '__return_false' );   add_filter( 'woocommerce_variable_price_html', 'variation_price', 20, 2 );  function variation_price( $  price, $  product ) {       $  min_regular_price = $  product->get_variation_regular_price( 'min', true );     $  min_sale_price = $  product->get_variation_sale_price( 'min', true );     $  max_regular_price = $  product->get_variation_regular_price( 'max', true );     $  max_sale_price = $  product->get_variation_sale_price( 'max', true );       if ( ! ( $  min_regular_price == $  max_regular_price && $  min_sale_price == $  max_sale_price ) ) {         if ( $  min_sale_price < $  min_regular_price ) {             $  price = sprintf( '<span>from </span><del>%1$  s</del><ins>%2$  s</ins>', wc_price( $  min_regular_price ), wc_price( $  min_sale_price ) );         } else {             $  price = sprintf( '<span>from </span>%1$  s', wc_price( $  min_regular_price ) );         }     }       return $  price;   }   function short_woocommerce_product_titles_words( $  title, $  id ) {   if ( ( is_shop() || is_product_tag() || is_product_category() ) && get_post_type( $  id ) === 'product' ) {     $  title_words = explode(" ", $  title);     if ( count($  title_words) > 6 ) { // Kicks in if the product title is longer than 6 words       // Shortens the title to 6 words and adds ellipsis at the end       return implode(" ", array_slice($  title_words, 0, 6)) . '...';     } else {       return $  title; // If the title isn't longer than 6 words, it will be returned in its full length without the ellipsis     }   } else {     return $  title;   } } add_filter( 'the_title', 'short_woocommerce_product_titles_words', 10, 2 );   remove_action( 'storefront_header', 'storefront_product_search', 40); add_action( 'storefront_header', 'storefront_product_search', 25 );