diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php
index 5d9cf1ad2c..8ca2d81159 100644
a
|
b
|
function wp_delete_term( $term, $taxonomy, $args = array() ) { |
1909 | 1909 | return $ids; |
1910 | 1910 | } |
1911 | 1911 | |
| 1912 | /** |
| 1913 | * Filters whether a term deletion should take place. |
| 1914 | * |
| 1915 | * @since 5.9.0 |
| 1916 | * |
| 1917 | * @param bool|null $delete Whether to go forward with deletion. |
| 1918 | * @param WP_Term $term Term object. |
| 1919 | * @param string $taxonomy Taxonomy Name. |
| 1920 | */ |
| 1921 | $check = apply_filters( 'pre_term_deletion', null, $term, $taxonomy ); |
| 1922 | if ( null !== $check ) { |
| 1923 | return $check; |
| 1924 | } |
| 1925 | |
1912 | 1926 | $tt_id = $ids['term_taxonomy_id']; |
1913 | 1927 | |
1914 | 1928 | $defaults = array(); |