Code
This file contains hidden or 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 (strpos($_SERVER[HTTP_REFERER], "twitter.com") == true) { | |
echo "Hello Twitter User!"; | |
} | |
?> |
Note
Description | Twitterからのリファラで判別してコンテンツを表示する |
---|---|
WordPress Ver. | 未検証 |
Via | Detect Twitter-user |