Reply To: Function checking access

Author
Reply
  • #2533

    I understand that your plugin uses the bbpress contents template, so I gave as an example the boolean function analogy “is_user_logged_in()”

    maybe like this:

    if ( is_user_access_forum() ) {
    echo show header content;
    echo show secondary content;
    echo show footer content;
    } else {
    echo ”;
    }

    eg i used

    if ( is_user_logged_in() ) :

    do_action( ‘footer_content’ );

    endif;