Title: Customize Using functions.php
Last modified: January 3, 2017

---

# Customize Using functions.php

 *  Resolved [dealfiles](https://wordpress.org/support/users/dealfiles/)
 * (@dealfiles)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/customize-using-functions-php/)
 * 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](https://wordpress.org/support/users/geekserve/)
 * (@geekserve)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/customize-using-functions-php/#post-8623626)
 * Hi [@dealfiles](https://wordpress.org/support/users/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,
 * Jake
 *  [theredeclipse](https://wordpress.org/support/users/theredeclipse/)
 * (@theredeclipse)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/customize-using-functions-php/#post-8831450)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/bbpress-improved-statistics-users-
   online_f8f8f8.svg)
 * [bbPress Advanced Statistics](https://wordpress.org/plugins/bbpress-improved-statistics-users-online/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bbpress-improved-statistics-users-online/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bbpress-improved-statistics-users-online/)
 * [Active Topics](https://wordpress.org/support/plugin/bbpress-improved-statistics-users-online/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bbpress-improved-statistics-users-online/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bbpress-improved-statistics-users-online/reviews/)

## Tags

 * [customization](https://wordpress.org/support/topic-tag/customization/)

 * 2 replies
 * 3 participants
 * Last reply from: [theredeclipse](https://wordpress.org/support/users/theredeclipse/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/customize-using-functions-php/#post-8831450)
 * Status: resolved