Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Commit

Permalink
fixes #503 Deprecated: get_woocommerce_term_meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon007 committed Jun 28, 2020
1 parent f7aa4af commit 7d9cf97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Hyyan/WPI/Taxonomies/Categories.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public function copyProductCatCustomFields()
}

$ID = esc_attr($_GET['from_tag']);
$type = get_woocommerce_term_meta($ID, 'display_type', true);
$thumbID = absint(get_woocommerce_term_meta($ID, 'thumbnail_id', true));
$type = get_term_meta($ID, 'display_type', true);
$thumbID = absint(get_term_meta($ID, 'thumbnail_id', true));
$image = $thumbID ?
wp_get_attachment_thumb_url($thumbID) :
wc_placeholder_img_src(); ?>
Expand Down

0 comments on commit 7d9cf97

Please sign in to comment.