Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: To display [Resolved], by the thread’s title

You’re so awesome!! It works!! Thanks a ton!!

<?php

/*

Plugin Name: My Resolve Title

Plugin URI: https://bbpress.org/forums/topic/338?replies=4#post-1764

Description: Puts [Resolved] by the thread's title, for threads that are marked as Resolved.

Author: so1o

Version: 0.1

Author URI: http://www.adityanaik.com/forums/

*/

function my_resolve_title($id){

global $topic;

if ('yes' == $topic->topic_resolved)

return sprintf(__('[Resolved] %s'), $topic->topic_title);

return $topic->topic_title;

}

add_filter( 'topic_title', 'my_resolve_title');

?>

spencerp

Skip to toolbar