【WordPress】AMPページと通常ページの分岐方法

AMPページと通常ページの分岐方法を紹介します。
使用するプラグイン
ソース
if(function_exists('is_amp_endpoint') && is_amp_endpoint()) {
【AMPページ】
} else {
【それ以外】
}
AMPページと通常ページの分岐方法を紹介します。
if(function_exists('is_amp_endpoint') && is_amp_endpoint()) {
【AMPページ】
} else {
【それ以外】
}