Skip to content

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

Open
fembuelita wants to merge 1 commit intobainternet:masterfrom
fembuelita:master
Open

Fixed a bug with delete_term_meta API (meta name was required)#125
fembuelita wants to merge 1 commit intobainternet:masterfrom
fembuelita:master

Conversation

@fembuelita
Copy link

Simple iterate over each field to delete each term individually.

@ocholabs
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants