/** * Unsubscribe the user from an author. * * @since 2.0.0 * * @param Prompt_User $author * @param bool|true $notify */ protected function author_unsubscribe(Prompt_User $author, $notify = true) { $author->unsubscribe($this->user_id); if ($notify) { Prompt_Subscription_Mailing::send_unsubscription_notification($this->user_id, $author); } }