Skip to:
Content
Pages
Categories
Search
Top
Bottom

How else could you use a cool bbpress?

  • @idaebak

    Participant

    Hi

    I want to look particularly if the forum administrators write for.

    View post on imgur.com


    In the attached image,
    “Forum Moderator” like a box.

    I eagerly awaits your help.

    Thank you.

Viewing 1 replies (of 1 total)
  • @robkk

    Moderator

    Something like this might work.

    Add this php code snippet to your child themes functions.php or add it in a functionality plugin.

    function rkk_display_moderator_label() {
        $reply_id    = bbp_get_reply_id();
        $role        = bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) );
    	
        if( $role == 'Moderator') {
            echo'<div class="bbp-mod-label">Forum Moderator</div>';
        }
    }
    
    add_action( 'bbp_theme_before_reply_content', 'rkk_display_moderator_label' );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar