5 F Z j | hO O , # ' + 0 5 : ? ~ D I P U Z _ d i n r w | # 6 L X c o | $ < K X f h h / `U `撓 T x& V j& V P撓 T % ? & & & & & & & & y v* * * * | 钓 钓 钓 钓 钓 0 ꒓ 钓 钓 钓 钓 钓 ꒓ ꒓ "꒓ P!꒓ !꒓ "꒓ p!꒓ `!꒓ 0-꒓ /꒓ +꒓ -꒓ )꒓ .꒓ @)꒓ )꒓ ,꒓ +꒓ Z꒓ X꒓ pX꒓ X꒓ X꒓ 0Y꒓ Pi꒓ d꒓ Ւ Ւ Ւ e꒓ e꒓ e꒓ d꒓ pe꒓ e꒓ e꒓ po꒓ pp꒓ o꒓ r꒓ o꒓ v꒓ v꒓ x꒓ y꒓ w꒓ ꒓ `꒓ ꒓ @꒓ p꒓ ꒓ ꒓ А꒓ ꒓ ꒓ 0꒓ ꒓ ꒓ ꒓ Ւ Ւ Ւ @꒓ ꒓ ꒓ ꒓ ꒓ ꒓ @꒓ ꒓ ꒓ ꒓ ꒓ ꒓ ꒓ @꒓ ꒓ ꒓ ꒓ ꒓ 0꒓ ꒓ ꒓ ꒓ ꒓ 0뒓 뒓 뒓 뒓 뒓 뒓 p 뒓 뒓 뒓 뒓 0֒ @#֒ +֒ @1֒ 9 L֒ I Z֒ ֒ i `k֒ y Pt֒ @9֒ ֒ >֒ `֒ @֒ ֒ > E @F @= B `B E D < E B @A h Y _ 8 8 8 8 8 8 8 8 8 8 8 8 8 ܒ ܒ ܒ ܒ ܒ ܒ `ܒ @ܒ ܒ ܒ 0ܒ 0ܒ pܒ ܒ Pܒ 0ܒ `ܒ ܒ ܒ ܒ ے ے ے ܒ ے 0ے ے ܒ ܒ 0ܒ ے pܒ c_post_types = $this->get_public_post_types(); $excluded_post_types = $this->get_excluded_post_types_for_indexables(); $included_post_types = \array_diff( $public_post_types, $excluded_post_types ); return $this->filter_included_post_types( $included_post_types ); } /** * Filters the post types that are included to be indexed. * * @param array $included_post_types The post types that are included to be indexed. * * @return array The filtered post types that are included to be indexed. */ protected function filter_included_post_types( $included_post_types ) { /** * Filter: 'wpseo_indexable_forced_included_post_types' - Allows force including posts of a certain post * type to be saved to the indexable table. * * @api array $included_post_types The currently included post types that indexables will be created for. */ $filtered_included_post_types = \apply_filters( 'wpseo_indexable_forced_included_post_types', $included_post_types ); if ( ! \is_array( $filtered_included_post_types ) ) { // If the filter got misused, let's return the unfiltered array. return \array_values( $included_post_types ); } // Add sanity check to make sure everything is an actual post type. foreach ( $filtered_included_post_types as $key => $post_type ) { if ( ! \post_type_exists( $post_type ) ) { unset( $filtered_included_post_types[ $key ] ); } } // `array_values`, to make sure that the keys are reset. return \array_values( $filtered_included_post_types ); } /** * Returns an array of complete post type objects for all indexable post types. * * @return array List of indexable post type objects. */ public function get_indexable_post_type_objects() { $post_type_objects = []; $indexable_post_types = $this->get_indexable_post_types(); foreach ( $indexable_post_types as $post_type ) { $post_type_object = \get_post_type_object( $post_type ); if ( ! empty( $post_type_object ) ) { $post_type_objects[ $post_type ] = $post_type_object; } } return $post_type_objects; } }