_wp_check_for_scheduled_split_terms

In order to avoid the _wp_batch_split_terms() job being accidentally removed, check that it's still scheduled while we haven't finished splitting terms.

Description

_wp_check_for_scheduled_split_terms(); 

Usage

  1. if ( !function_exists( '_wp_check_for_scheduled_split_terms' ) ) { 
  2. require_once ABSPATH . WPINC . '/taxonomy.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = _wp_check_for_scheduled_split_terms(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/taxonomy.php  
  1. function _wp_check_for_scheduled_split_terms() { 
  2. if ( ! get_option( 'finished_splitting_shared_terms' ) && ! wp_next_scheduled( 'wp_split_shared_term_batch' ) ) { 
  3. wp_schedule_single_event( time() + MINUTE_IN_SECONDS, 'wp_split_shared_term_batch' );