0
I持って次のカスタムページテンプレートファイル名:Modify関数
- テンプレートについて-1.php
- テンプレートについて-2.php
- テンプレート家庭1.php
- テンプレート家庭2.php
私はページテンプレートを取得するには、この機能を持っている:
function get_page_templates_select() {
$teh_cats = get_page_templates();
foreach ($teh_cats as $template_name => $template_filename) {
$results[] = $template_name;
}
return $results;
}
ファイル名に "home"が含まれているテンプレートのみを返すように関数を変更するにはどうすればよいですか?
良い仕事を....... – Fil