2017-04-23 2 views

답변

0

당신은 get_template_part()

<?php 
    if($config['applicable-countries'] == 'all') { 
    get_template_part($slug, $name); 
    } 

    else if($config['applicable-countries'] == 'speific country') { 
    get_template_part($slug, $name); 
    } 
?> 


사용할 수 있습니다 또는 당신은 간단한 PHP를 사용하여 include-

<?php 
    if($config['applicable-countries'] == 'all') { 
    include_once "checkout.php"; 
    } 

    else if($config['applicable-countries'] == 'speific country') { 
    include_once "checkout.php"; 
    } 
?> 
관련 문제