Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
特定のURLが指定された場合に限りAmazonアソシエイトのMobile Popoverを表示するためのPHPのコード片。
function add_this_script_footer(){
if (is_mobile() && preg_match("#^/recolog#",$_SERVER['REQUEST_URI'])) {
// ここにMobile Popoverのコードを挿入。
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
You can’t perform that action at this time.