public function queue_term_purge($term) { $term = get_term($term); if (is_wp_error($term)) { return false; } if (empty($term)) { return false; } $term_ids = array($term->term_id); $this->queue_terms_purges($term_ids, $term->taxonomy); }