add custom functions for shortcode plugin