diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index 85ca5c30da..64fc4fcfb6 100644
a
|
b
|
function wp_set_object_terms( $object_id, $terms, $taxonomy, $append = false ) { |
2817 | 2817 | $old_tt_ids = array(); |
2818 | 2818 | } |
2819 | 2819 | |
| 2820 | /** |
| 2821 | * Fires before an object's terms are set. |
| 2822 | * |
| 2823 | * @since 6.4.1 |
| 2824 | * |
| 2825 | * @param int $object_id Object ID. |
| 2826 | * @param array $terms An array of object term IDs or slugs. |
| 2827 | * @param string $taxonomy Taxonomy slug. |
| 2828 | * @param bool $append Whether to append new terms to the old terms. |
| 2829 | * @param array $old_tt_ids Old array of term taxonomy IDs. |
| 2830 | */ |
| 2831 | do_action( 'pre_set_object_terms', $object_id, $terms, $taxonomy, $append, $old_tt_ids ); |
| 2832 | |
2820 | 2833 | $tt_ids = array(); |
2821 | 2834 | $term_ids = array(); |
2822 | 2835 | $new_tt_ids = array(); |