1
2
3
4
5
// add support for snipt.net
function snipt_shortcode( $atts, $content = null ) {
   return "<script type='text/javascript' src='http://snipt.net/embed/" . $content . "'></script>";
}
add_shortcode( 'snipt', 'snipt_shortcode' );