Added support for custom events via shortcode filters.

Reworked the patch to take into account your comments and suggestions.

Signed-off-by: Iñaki Arenaza <iarenaza@mondragon.edu>