Created
May 26, 2015 21:05
-
-
Save ko31/2acd30c2a7b70df287cd to your computer and use it in GitHub Desktop.
【WordPress】サンプルプラグイン
This file contains hidden or 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: My Plugin | |
*/ | |
add_filter( 'the_content', 'my_add_content' ); | |
function my_add_content( $content ) { | |
$html = '<p>テストです。</p>'; | |
return $html . $content; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment