Yoast\WP\Lib

Model::get_id_column_name()protected staticYoast 1.0

Return the ID column name to use for this class. If it is not set on the class, returns null.

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

Хуков нет.

Возвращает

Строку|null. The ID column name.

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

$result = Model::get_id_column_name( $class_name );
$class_name(строка) (обязательный)
The class name to get the ID column for.

Код Model::get_id_column_name() Yoast 22.3

protected static function get_id_column_name( $class_name ) {
	return static::get_static_property( $class_name, 'id_column', static::DEFAULT_ID_COLUMN );
}