bA pgwU gwU J `IwU }QwU @ ! bA pgwU gwU J wU }QwU `bA fwU fwU fwU wU 1J wU }QwU ` bA fwU @fwU fwU wU 9J wU }QwU ! bA fwU `fwU 0fwU wU AJ wU }QwU 8(bA fwU @fwU wU IJ wU }QwU aA fwU `7ewU fwU wU YJ wU }QwU `A fwU @6ewU fwU wU qJ wU }QwU 0 ! bA fwU ewU fwU wU yJ wU }QwU xaA fwU ^wU fwU wU J wU }QwU P bA fwU fwU wU 1I 0@wU }QwU ` bA fwU PfwU wU QI wU }QwU p bA fwU pfwU wU YI @wU }QwU !bA fwU fwU wU aI wU }QwU P!bA fwU fwU wU iI wU }QwU !bA fwU fwU wU qI wU }QwU !bA fwU fwU wU yI wU }QwU @ @"bA fwU fwU wU I `wU }QwU "bA fwU 0fwU wU I wU }QwU ` "bA fwU PfwU wU I wU }QwU #bA fwU fwU wU I @wU }QwU X#bA fwU `fwU wU I wU }QwU #bA fwU fwU wU I wU }QwU $bA fwU fwU wU I wU }QwU 0 X$bA fwU fwU wU I wU }QwU $bA fwU fwU wU I `wU }QwU P $bA fwU fwU wU I wU }QwU P%bA fwU 0fwU wU I wU }QwU p %bA fwU PfwU _taxonomies_for_indexables(), true ); } /** * This builds a list of indexable taxonomies. * * @return array The indexable taxonomies. */ public function get_indexable_taxonomies() { $public_taxonomies = $this->get_public_taxonomies(); $excluded_taxonomies = $this->get_excluded_taxonomies_for_indexables(); // `array_values`, to make sure that the keys are reset. return \array_values( \array_diff( $public_taxonomies, $excluded_taxonomies ) ); } /** * Returns an array of complete taxonomy objects for all indexable taxonomies. * * @return array List of indexable indexables objects. */ public function get_indexable_taxonomy_objects() { $taxonomy_objects = []; $indexable_taxonomies = $this->get_indexable_taxonomies(); foreach ( $indexable_taxonomies as $taxonomy ) { $taxonomy_object = \get_taxonomy( $taxonomy ); if ( ! empty( $taxonomy_object ) ) { $taxonomy_objects[ $taxonomy ] = $taxonomy_object; } } return $taxonomy_objects; } }