Yoast\WP\SEO\Builders

Indexable_Link_Builder::gather_images_wp()publicYoast 1.0

Метод класса: Indexable_Link_Builder{}

Хуки из метода

Возвращает

null. Ничего (null).

Использование

$Indexable_Link_Builder = new Indexable_Link_Builder();
$Indexable_Link_Builder->;

Код Indexable_Link_Builder::gather_images_wp() Yoast 24.0

		return $links;
	}

	/**
	 * Creates link models from lists of URLs and image sources.
	 *
	 * @param Indexable $indexable The indexable.
	 * @param string[]  $links     The link URLs.
	 * @param int[]     $images    The image sources.
	 *
	 * @return SEO_Links[] The link models.
	 */
	protected function create_links( $indexable, $links, $images ) {
		$home_url    = \wp_parse_url( \home_url() );
		$current_url = \wp_parse_url( $indexable->permalink );
		$links       = \array_map(
			function ( $link ) use ( $home_url, $indexable ) {
				return $this->create_internal_link( $link, $home_url, $indexable );
			},
			$links
		);
		// Filter out links to the same page with a fragment or query.
		$links = \array_filter(
			$links,
			function ( $link ) use ( $current_url ) {
				return $this->filter_link( $link, $current_url );