Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[WordPress] 使用しているテンプレート名を取得する
<?php
global $template;
$template_name = basename($template, '.php');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.