function ceo_display_the_transcript_action() { global $post; if (is_archive() || is_search() || ceo_pluginfo('enable_transcripts_in_comic_posts')) { return; } return ceo_the_transcript('styled'); }
function ceo_insert_comic_transcript_into_posts($content) { global $post; if (ceo_pluginfo('enable_transcripts_in_comic_posts') && $post->post_type == 'comic') { $transcript = ceo_the_transcript('styled'); return $content . $transcript; } return $content; }