ies_data The set of Series to process, either Series post IDs * or Series post titles, or a mix of both. * @param bool $match_by_name Whether to try and match Series posts by name or not. * @param array $create_overrides An associative array of arguments to override the default ones. * * @return array The post IDs of the inserted or updated Series. */ protected function process_series_data( array $series_data, bool $match_by_name = true, array $create_overrides = [] ): array { $vinsert = array_map( static function ( $series ) use ( $match_by_name ) { if ( is_numeric( $series ) ) { return [ 'id' => $series ]; } $match = $match_by_name ? get_page_by_title( $series, OBJECT, Series_Post_Type::POSTTYPE ) : null; if ( $match instanceof WP_Post ) { return [ 'id' => $match->ID ]; } return [ 'title' => $series ]; }, $series_data ); return Series::vinsert_many( $vinsert, $create_overrides ); } } Events for July 30, 2025 – Champion Bay Senior High School

Views Navigation

Event Views Navigation

Today