public function dettacherImageFromPost(Course $course)
 {
     if (PostWP::hasPostPicture($course->getId())) {
         PostWP::deletePostPicture($course->getId());
     }
 }
 public function dettacherImageFromPost(AbstractActivity $activity)
 {
     if (PostWP::hasPostPicture($activity->getId())) {
         PostWP::deletePostPicture($activity->getId());
     }
 }