Skip to content

Instantly share code, notes, and snippets.

@anthonycole
Created October 30, 2011 05:19
Show Gist options
  • Save anthonycole/1325539 to your computer and use it in GitHub Desktop.
Save anthonycole/1325539 to your computer and use it in GitHub Desktop.
WordCamp Gold Coast Sample Plugin
<?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