Yoast\WP\Lib

ORM::get_id_column_name()protectedYoast 1.0

Returns the name of the column in the database table which contains the primary key ID of the row.

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

Хуков нет.

Возвращает

Строку. The primary key ID of the row.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_id_column_name();

Код ORM::get_id_column_name() Yoast 22.4

protected function get_id_column_name() {
	if ( ! \is_null( $this->instance_id_column ) ) {
		return $this->instance_id_column;
	}

	return 'id';
}