You appear to be a bot. Output may be restricted
Description
Builds links for indexables which haven't had their links indexed yet.
Usage
$SEO_Links[] = Abstract_Link_Indexing_Action::index();
Parameters
Returns
SEO_Links[] The created SEO links.
Source
File name: wordpress-seo/src/actions/indexing/abstract-link-indexing-action.php
Lines:
1 to 21 of 21
public function index() { $objects = $this->get_objects(); $indexables = []; foreach ( $objects as $object ) { $indexable = $this->repository->find_by_id_and_type( $object->id, $object->type ); if ( $indexable ) { $this->link_builder->build( $indexable, $object->content ); $indexable->save(); $indexables[] = $indexable; } } if ( \count( $indexables ) > 0 ) { \delete_transient( static::UNINDEXED_COUNT_TRANSIENT ); \delete_transient( static::UNINDEXED_LIMITED_COUNT_TRANSIENT ); } return $indexables; }