how to find the template name used in a page in wordpress code example
Example 1: get template name wordpress
get_page_template_slug()
if (get_page_template_slug() =='page-workflow.php' ) {
//stuff
}
Example 2: wordpress define template name
/*on top of Php file add the below line to make as custom template*/
<?php /* Template Name: Custom template name */ ?>