Yoast\WP\SEO\Schema_Aggregator\Domain

Schema_Piece_Collection::add │ public │ Yoast 1.0

Adds a schema piece to the collection.

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

Хуков нет.

Возвращает

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

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

$Schema_Piece_Collection = new Schema_Piece_Collection();
$Schema_Piece_Collection->add( $piece ): void;
$piece(Schema_Piece) (обязательный)
The schema piece to add.

Код Schema_Piece_Collection::add() Yoast 28.9

public function add( Schema_Piece $piece ): void {
	$this->pieces[] = $piece;
}