Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/*
Plugin Name: Pronama-chan shortcode
*/
add_shortcode('pronama-chan-icon', 'pronama_chan_icon_func');
function pronama_chan_icon_func($atts) {
extract(shortcode_atts(array(
'msg' => 'おはよう!'
), $atts));
return '<img src="http://pronama.azurewebsites.net/icogen/image/thumb01.png" /> <span>' . $msg . '</span>';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment