Yoast\WP\Lib

Model::is_new()publicYoast 1.0

Check whether the model was the result of a call to create() or not.

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

Хуков нет.

Возвращает

true|false. True when is new.

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

$Model = new Model();
$Model->is_new();

Код Model::is_new() Yoast 22.4

public function is_new() {
	return $this->orm->is_new();
}