Created
October 30, 2011 05:19
-
-
Save anthonycole/1325539 to your computer and use it in GitHub Desktop.
WordCamp Gold Coast Sample Plugin
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 | |
/** | |
* Appends content to WordPress content | |
* | |
* @return var $new_content | |
* @author Anthony Cole | |
**/ | |
function wcgold_modify_content( $content ) { | |
$string = ' and WordCamp Gold Coast is Awesome!'; | |
$new_content = $string . $content; | |
return $new_content; | |
} | |
add_filter( 'the_content', 'wcgold_modify_content' ); | |
/** | |
* Adds a piece of content to WordCamp Gold Coast. | |
* | |
* @return void | |
* @author Anthony Cole | |
**/ | |
function wcgold_add_header( ) { | |
echo "<p>This is the init action of WordPress!</p>"; | |
} | |
add_action( 'init', 'wcgold_add_header' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment