Yoast\WP\SEO\Builders

Indexable_Builder::deep_copy_indexable()protectedYoast 1.0

Creates a clean copy of an Indexable to allow for later database operations.

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

Хуков нет.

Возвращает

true|false|Indexable.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->deep_copy_indexable( $indexable );
$indexable(Indexable) (обязательный)
The Indexable to copy.

Код Indexable_Builder::deep_copy_indexable() Yoast 22.4

protected function deep_copy_indexable( $indexable ) {
	return $this->indexable_repository
		->query()
		->create( $indexable->as_array() );
}