Created
January 19, 2014 14:58
-
-
Save snoise/8506008 to your computer and use it in GitHub Desktop.
画像を末尾に追加するプラグイン
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
<?php | |
/* | |
Plugin Name: paka3 AddImage | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: 画像を末尾に追加するプラグイン | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ | |
function paka3_AddImage($contentData) { | |
$str = $contentData."<img src='http://www.paka3.net/wp-content/uploads/2014/01/wpicon1.png' alt='1日1プラグイン'>"; | |
return $str; | |
} | |
add_filter('the_content','paka3_AddImage'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment