Get Template Name WordPress

get_page_template_slug()

if (get_page_template_slug() =='page-workflow.php' ) {
 //stuff
}

Leave a Comment