Support » Plugin: bbPress Advanced Statistics » Customize Using functions.php

  • Resolved dealfiles


    I would very much like to use functions.php to change the phrasing surrounding the bbpress statistics, similar to the following…

    This forum has 11,413 posts, 837 Members and there are currently 52 members online.

    Can you give some guidance? Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jake Hall


    Hi @dealfiles,

    There isn’t a way to change the output of the statistics – it is designed to closely mimic the phpBB and vBulletin stats (for forums moving over like so).

    With that being said, you can access the functions within the plugin by invoking the following code in your file:

    $stats = bbPress_Advanced_Statistics::instance( __FILE__, BBPAS_VERS );

    That should allow you access to the plugins instance, and from there you can call functions to get the data you need (e.g get_formatted_statistics).

    Hope that helps,


    Hello, I have a similar problem, I want to customize output of module, change styles for my custom theme.

    I’m pretty new to php, I’ve tried for test purposes to rework output of heading text but with no luck(in bbpress functions), it gets white screen of death. Guess I doing something wrong, can you tell me how to do this in a proper way?

     add_filter('bbpress_hook_get', 'statistics');
    	function statistics() {
          if ( bbpress_hook_get() ) {
                echo '<h1 class="font_1">' . wp_kses_post( $this->parent->option['before_forum_display'] ) . "</h1>" 
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Customize Using functions.php’ is closed to new replies.