function wl_process_content($content) { global $post; if (get_post_type($post->ID) == 'quiz') { $content = wbq_generate_quiz($post->ID); } return $content; }
function wbq_shortcode_handler($atts, $content = null) { return wbq_generate_quiz($atts['id']); }