Yoast\WP\SEO\Schema_Aggregator\Domain

Schema_Piece::get_id │ public │ Yoast 1.0

Gets the ID of the schema piece.

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

Хуков нет.

Возвращает

string|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 28.9

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