Error thrown

Call to undefined function Automattic\WooCommerce\Blocks\_wp_to_kebab_case()