Yoast\WP\Lib
Model::is_new()
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() Model::is new Yoast 24.1
public function is_new() { return $this->orm->is_new(); }