• Hello.

    I love this plugin and I’m wondering if there is a way to know by php if the forum where user is, It is a support forum or none.

    Thank you in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @agalazo

    I’m not the plugin author, but you could try something like this. It should work based on code.

    // topic not resolved
    if ( 1 === (int) get_post_meta( $topic_id, '_bpbbpst_support_topic', true ) ) {
    // do something
    }
    
    // topic resolved
    if ( 2 === (int) get_post_meta( $topic_id, '_bpbbpst_support_topic', true ) ) {
    // do something
    }
    
    // not a support forum
    if ( 3 === (int) get_post_meta( $topic_id, '_bpbbpst_support_topic', true ) ) {
    // do something
    }

    Hope this helps.

    Thread Starter agalazo

    (@agalazo)

    Hi Alex,

    Thank you for your response. I found a similar solution and all works without problems..

    Thanks ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Detect forum support by PHP’ is closed to new replies.