Skip to:
Content
Pages
Categories
Search
Top
Bottom

is_bbpress() limitations / environment

  • Hello,

    I’m using this function in order to enqueue some custom CSS when a forum related page is loaded.

    The problem is for example, the “New Topic” page – Part of bbPress – gives FALSE when I call is_bbpress()

    Is there any place where I can check about this function besides going through the core code? I’ve searched over the Documentation and couldn’t find anything.

    Thanks,
    Juan.

Viewing 1 replies (of 1 total)
  • Well, 10 minutes after..I see there’s not much around. Went to the code and did a little tweak. I’m sharing this in case anybody need it:

    
    add_filter( 'is_bbpress', 'my_bbpress_page' );
    
    function my_bbpress_page( $retval = false ){
    	
    	if ( is_page_template( 'my-template.php' ) ) {
    		$retval = true;
    	}
    	
    	return $retval;
    }

    I’ll try and see if I have some time to make some docs around this. Having documentation is the key to have more things around this plugin.

    Best,
    Juan.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar