Skip to content

Instantly share code, notes, and snippets.

@beastaugh
Created August 27, 2008 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beastaugh/7577 to your computer and use it in GitHub Desktop.
Save beastaugh/7577 to your computer and use it in GitHub Desktop.
Change the Tarski footer credits.
<?php
/*
Plugin Name: Change Credits
Plugin URI: http://tarskitheme.com/
Description: Change the Tarski footer credits.
Author: Benedict Eastaugh
Version: 1.1
Author URI: http://extralogical.net/
*/
function change_tarski_credits() {
$credits_text = <<<CREDITS
<div class="primary content">
<p>Your credits text.</p>
</div>
CREDITS;
print $credits_text;
}
function init_change_tarski_credits() {
remove_action('th_footer', 'tarski_credits');
add_action('th_footer', 'change_tarski_credits');
}
add_action('init', 'init_change_tarski_credits');
/**
* CHANGELOG
*
* Version 1.1
*
* - Use heredoc formatting rather than interpolating HTML with PHP.
* - Remove use of <? PHP short tag.
*
* Version 1.0
*
* - Initial release.
*
*/
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment