Yoast\WP\Lib
ORM::get_id_column_name
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() ORM::get id column name Yoast 26.7
protected function get_id_column_name() {
if ( $this->instance_id_column !== null ) {
return $this->instance_id_column;
}
return 'id';
}