Tax-Meta-Class icon indicating copy to clipboard operation
Tax-Meta-Class copied to clipboard

Fixed a bug with delete_term_meta API (meta name was required)

Open fembuelita opened this issue 8 years ago • 1 comments

Simple iterate over each field to delete each term individually.

fembuelita avatar May 22 '16 02:05 fembuelita

Hi, if you do this fix you'll get php warnings as in delete_term_meta( $term_id, $field ); $field is an array and you should pass a string I changed it to delete_term_meta( $term_id, $field['id']); And got no more warnings now.

ocholabs avatar Nov 27 '16 09:11 ocholabs