Created
June 24, 2019 13:05
-
-
Save pandanote-info/57a2ffe735654a7d23da46e7fc3a2711 to your computer and use it in GitHub Desktop.
amazon_widget.phpの組み込みのためにfunctions.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
/* | |
詳細は https://pandanote.info/?p=893 を参照のこと。 | |
*/ | |
require_once( get_template_directory() . ‘/amazon_widget.php’); | |
function amazon_fancy_ads() { | |
$cards = get_card(); | |
return $cards[“index”]; | |
} | |
add_shortcode(‘amazon-fancy-ads’,’amazon_fancy_ads’); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment