Current Path : /storage/v11800/romasitenew/public_html/wp-content/plugins/webappick-product-feed-for-woocommerce/includes/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/romasitenew/public_html/wp-content/plugins/webappick-product-feed-for-woocommerce/includes/wc-legacy-support.php |
<?php
/**
* Legacy WooCommerce Support
*/
if( ! function_exists( 'wc_get_attribute_taxonomy_labels' ) && ! woo_feed_wc_version_check( '3.6.0' ) ) {
/**
* Support for wc < 3.6.0
* Get (cached) attribute taxonomy label and name pairs.
* @return array
*/
function wc_get_attribute_taxonomy_labels(){
$prefix = WC_Cache_Helper::get_cache_prefix( 'woocommerce-attributes' );
$cache_key = $prefix . 'labels';
$cache_value = wp_cache_get( $cache_key, 'woocommerce-attributes' );
if ( $cache_value ) {
return $cache_value;
}
$taxonomy_labels = wp_list_pluck( wc_get_attribute_taxonomies(), 'attribute_label', 'attribute_name' );
wp_cache_set( $cache_key, $taxonomy_labels, 'woocommerce-attributes' );
return $taxonomy_labels;
}
}