Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
amazon_widget.phpの組み込みのためにfunctions.phpに記述が必要なコード。
/*
詳細は 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
You can’t perform that action at this time.