Last active
July 8, 2018 13:27
-
-
Save pandanote-info/b206136b74df153f861335d32794e8ea to your computer and use it in GitHub Desktop.
特定のURLが指定された場合に限りAmazonアソシエイトのMobile Popoverを表示するためのPHPのコード片。
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
function add_this_script_footer(){ | |
if (is_mobile() && preg_match("#^/recolog#",$_SERVER['REQUEST_URI'])) { | |
?> | |
// ここにMobile Popoverのコードを挿入。 | |
<?php | |
} | |
} | |
add_action('wp_footer', 'add_this_script_footer',999); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment