Skip to content

Commit

Permalink
Fix for WordPress.WP.DeprecatedParameters.Get_termsParam2Found
Browse files Browse the repository at this point in the history
The parameter at position #2 of get_terms() has been deprecated since WordPress version 4.5.0.
  • Loading branch information
brezocordero committed Jul 26, 2024
1 parent 690da10 commit e3b490b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion includes/Admin/Product_Sets.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,12 @@ protected function get_field_label() {
*/
protected function get_field( $term_id = '' ) {
$saved_items = get_term_meta( $term_id, $this->categories_field, true );
$product_cats = get_terms( 'product_cat', array( 'hide_empty' => 0 ) );
$product_cats = get_terms(
array(
'taxonomy' => 'product_cat',
'hide_empty' => false,
)
);
?>
<div class="select2 updating-message"><p></p></div>
<select
Expand Down

0 comments on commit e3b490b

Please sign in to comment.