protected function save($post_id) { if (!isset($_POST[self::$custom_text_name]) or $post_id != $this->prompt_post->id()) { return; } if (!current_user_can('edit_post', $post_id)) { return; } $this->prompt_post->set_custom_text($_POST[self::$custom_text_name]); }