Created
January 18, 2014 15:15
-
-
Save snoise/8491839 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 AddText | |
Plugin URI: http://www.paka3.com/wpplugin | |
Description: テキストを末尾に追加するプラグイン | |
Author: Shoji ENDO | |
Version: 0.1 | |
Author URI:http://www.paka3.com/ | |
*/ | |
function paka3_addtext($contentData) { | |
$str = $contentData."<h3>【1日1プラグインはじめました!!】</h3>"; | |
return $str; | |
} | |
add_filter('the_content','paka3_addtext'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment