WordPress.org

Ready to get started?Download WordPress

Forums

Buddy-bbPress Support Topic
[resolved] Add resolved class to resolved topics (2 posts)

  1. grosbouff
    Member
    Posted 9 months ago #

    Hi, it would be nice to have a class added for resolved topics, so we can customize them with CSS:

    function bpbbst_filter_topic_classes($classes,$topic_id){
                $is_resolved = ( 2 == get_post_meta(topic_id, '_bpbbpst_support_topic', true ) );
                if (!$is_resolved){
                    $classes[]='bpbbst_resolved';
                }
                return $classes;
            }
    
    add_filter('bbp_get_topic_class','bpbbst_filter_topic_classes',10,2);

    http://wordpress.org/extend/plugins/buddy-bbpress-support-topic/

  2. imath
    Member
    Plugin Author

    Posted 8 months ago #

    Thanks for your suggestion.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.