Skip to main content
added 129 characters in body
Source Link
mor7ifer
  • 8.6k
  • 2
  • 19
  • 32

I believe the function you are looking for is wp_set_object_terms(). You will need to ensure that you are not giving duplicate IDs when append is set to false. I'm not sure what the behavior is when append is set to true.

EDIT: Having read through the source code for the function, it looks like if you're appending, then it does check for duplicates.

I believe the function you are looking for is wp_set_object_terms(). You will need to ensure that you are not giving duplicate IDs when append is set to false. I'm not sure what the behavior is when append is set to true.

I believe the function you are looking for is wp_set_object_terms(). You will need to ensure that you are not giving duplicate IDs when append is set to false. I'm not sure what the behavior is when append is set to true.

EDIT: Having read through the source code for the function, it looks like if you're appending, then it does check for duplicates.

Source Link
mor7ifer
  • 8.6k
  • 2
  • 19
  • 32

I believe the function you are looking for is wp_set_object_terms(). You will need to ensure that you are not giving duplicate IDs when append is set to false. I'm not sure what the behavior is when append is set to true.