Summery Summery
Get the new term ID corresponding to a previously split term.
Syntax Syntax
Parameters Parameters
- $old_term_id
-
(Required) Term ID. This is the old, pre-split term ID.
- $taxonomy
-
(Required) Taxonomy that the term belongs to.
Return Return
(int|false) If a previously split term is found corresponding to the old term_id and taxonomy, the new term_id will be returned. If no previously split term is found matching the parameters, returns false.
Source Source
File: wp-includes/taxonomy.php
function _wp_check_for_scheduled_split_terms() { if ( ! get_option( 'finished_splitting_shared_terms' ) && ! wp_next_scheduled( 'wp_split_shared_term_batch' ) ) { wp_schedule_single_event( time() + MINUTE_IN_SECONDS, 'wp_split_shared_term_batch' ); } } /** * Check default categories when a term gets split to see if any of them need to be updated. * * @ignore
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.2.0 | Introduced. |