Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'the_title', 'sticky_title' );
- function sticky_title( $title ) {
- // Only posts can be sticky, so no further checks.
- if ( is_sticky() ) {
- // Prepend "Special: " to post title.
- return 'Special: ' . $title;
- }
- return $title;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement