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