I read it here and I couldn't believe it.
So can a person still fart after dying ?
The answer is yes, it can happen after death, but only SHORTLY after death.
This is due to the contracting and expanding of the related muscles, which do not necessarily "shut down" immediately after death.
Two or three hours after death, rigor mortis sets in. This is a chemical stiffening of the muscles that prevents the kind of activity described above.
So the "window" doesn't last very long.
Some of the information contained in this post requires additional references. Please edit to add citations to reliable sources that support the assertions made here. Unsourced material may be disputed or deleted.