that has been updated.
*
* @return void
*/
protected function update_relations( $post ) {
$related_indexables = $this->get_related_indexables( $post );
foreach ( $related_indexables as $indexable ) {
// Ignore everything that is not an actual indexable.
if ( \is_a( $indexable, Indexable::class ) ) {
$indexable->object_last_modified = \max( $indexable->object_last_modified, $post->post_modified_gmt );
$this->indexable_helper->save_indexable( $indexable );
}
}
}
/**
* Retrieves the related indexables for given post.
*
* @param WP_Post $post The post to get the indexables for.
*
* @return Indexable[] The indexables.
*/
protected function get_related_indexables( $post ) {
/**
* The related indexables.
*
* @var Indexable[] $related_indexables .
*/
$related_indexables = [];
$related_indexables[] = $this->repository->find_by_id_and_type( $post->post_author, 'user', false );
$related_indexables[] = $this->repository->find_for_post_type_archive( $post->post_type, false );
$related_indexables[] = $this->repository->find_for_home_page( false );
$taxonomies = \get_post_taxonomies( $post->ID );
$taxonomies = \array_filter( $taxonomies, 'is_taxonomy_viewable' );
$term_ids = [];
foreach ( $taxonomies as $taxonomy ) {
$terms = \get_the_terms( $post->ID, $taxonomy );
if ( empty( $terms ) || \is_wp_error( $terms ) ) {
continue;
}
$term_ids = \array_merge( $term_ids, \wp_list_pluck( $terms, 'term_id' ) );
}
$related_indexables = \array_merge(
$related_indexables,
$this->repository->find_by_multiple_ids_and_type( $term_ids, 'term', false )
);
return \array_filter( $related_indexables );
}
/**
* Tests if the site is multisite and switched.
*
* @return bool True when the site is multisite and switched
*/
protected function is_multisite_and_switched() {
return \is_multisite() && \ms_is_switched();
}
}
Uncategorized Archives - Page 16759 of 19877 - iConsult India
Skip to content
Uncategorized
March 4, 2026
Oui, la plupart des jeux de casino clic peuvent être lancés en mode démo avant un dépôt, selon les informations […]
Velobet
March 4, 2026
When Sarah first brought home her guinea pig, Luna, she chose a standard wire cage with a plastic floor. It […]
Uncategorized
March 3, 2026
SlotMonster Casino has entered the UK-facing iGaming conversation with a model that appears tailored to players who prefer frequent, short […]
Uncategorized
March 3, 2026
Les promotions simultanées d’Arlequin casino peuvent sembler difficiles à suivre : bonus de dépôt, missions, tournois et récompenses VIP n’obéissent […]
Uncategorized
March 3, 2026
Woospin presents its VIP programme as a loyalty path built around deposits, gameplay and regular rewards. For Australian players, the […]
Uncategorized
March 2, 2026
Après avoir réclamé une offre, il peut devenir difficile de retrouver ses conditions, son délai ou son exigence de mise. […]
Uncategorized
March 1, 2026
If you opened a Royal Reels account but have not played yet, the key issue is whether the new player […]
Uncategorized
February 28, 2026
Speedau’s public help content is designed for Australian users, yet some French-facing or translated support material can retain technical labels […]
Uncategorized
February 28, 2026
Revenir régulièrement aux mêmes tables en direct demande surtout de la constance : comprendre les règles, vérifier les limites et […]
Hardware Security
February 28, 2026
The single highest-priority content material gap across competing definitive guides is a unified comparison; the matrix below is that. Choose […]
Uncategorized
February 27, 2026
Les récompenses mobiles de lucky31 se consultent depuis un navigateur, sans application native décrite à ce jour. Avant de déposer, […]
Uncategorized
February 25, 2026
Les multiplicateurs peuvent modifier fortement un gain, mais les mots « additif » et « multiplicatif » ne décrivent pas […]