Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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