custom event before post content