How to write PHP script that If forum doesn’t have content than do something ?
-
Hi,
I know <?php bbp_forum_content(); ?> will display forum content, but I don’t know how to write ” If forum doesn’t have content than do something” ? I try this script but it doesn’t work.<?php if(empty(bbp_forum_content()){echo "yes";} ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.