public function savePost($post_id, $post) { $data = $_POST['svkj_remindr']; $model = new ReminderModel($post); $model->set($data); $model->sync(); }
public function savePost($post_id, $post) { if (!isset($_POST['svkj_remindr'])) { return null; } $data = $_POST['svkj_remindr']; $model = new ReminderModel($post); $model->set($data); $model->sync(); }
public function sync() { update_post_meta($this->model->getPost()->ID, $this->prefixKey($this->key), $this->getValue()); }