Last active
December 10, 2019 02:26
-
-
Save mhige/e20b39b2fd7f34d18f7b87c58b3ab158 to your computer and use it in GitHub Desktop.
is_amp関数の使い方例
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(is_amp()) { | |
// こちらがAMPがONのとき(パラメータに?amp=1がついているとき) | |
} else { | |
// こちらがAMPがOFFのとき(パラメータがない、もしくは?amp=1じゃないとき) | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment