Created
November 30, 2010 15:22
-
-
Save pbroschwitz/721821 to your computer and use it in GitHub Desktop.
wp-add_filter-example.php
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
/** | |
* Test lowercase | |
*/ | |
function tolower_filter($text) { | |
return strtolower($text); | |
} | |
add_filter('the_content', 'tolower_filter'); | |
/** | |
* Test more | |
*/ | |
function thirtyten_excerpt_more($more){ | |
return ' … <a href="'. get_permalink() . '">' . __('finish reading '.get_the_title() .'', 'twentyten') . '</a>'; | |
} | |
remove_filter( 'excerpt_more', 'twentyten_excerpt_more' ); | |
add_filter ('excerpt_more', 'thirtyten_excerpt_more' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@see http://aaron.jorb.in/blog/2010/04/introducing-thirty-ten/