Yoast\WP\Lib
Model::save()
Save the data associated with this model instance to the database.
Метод класса: Model{}
Хуков нет.
Возвращает
true|false
. True on success.
Использование
$Model = new Model(); $Model->save();
Код Model::save() Model::save Yoast 24.0
public function save() { if ( $this->uses_timestamps ) { if ( ! $this->created_at ) { $this->created_at = \gmdate( 'Y-m-d H:i:s' ); } $this->updated_at = \gmdate( 'Y-m-d H:i:s' ); } return $this->orm->save(); }