Yoast\WP\SEO\Schema_Aggregator\Domain

Schema_Piece::get_idpublicYoast 1.0

Gets the ID of the schema piece.

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

Хуков нет.

Возвращает

Строку|null. The ID of the schema piece, or null if not set.

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

$Schema_Piece = new Schema_Piece();
$Schema_Piece->get_id(): ?string;

Код Schema_Piece::get_id() Yoast 27.8

public function get_id(): ?string {
	return ( $this->data['@id'] ?? null );
}