I need to execute the after save logic hook of contacts related to an account when i save its opportunity with closed won.Is there any way we can achieve this.
Off the top of my head, the easiest way I can think to do this would be to create a logic hook (after_save would probably make the most sense) on the Opportunities module. If the status is changed to Closed Won, retrieve the related Account, then use Fetch Relationships to get the related Contacts from the Account record. You can then just call $relatedContact->save() for each one. I hope that helps!
Retrieving data ...