bbp_bump_topic_reply_count
The bbPress bbp bump topic reply count hook.
Description
apply_filters( 'bbp_bump_topic_reply_count', (int) $int_new_count, (unknown) $topic_id, (int) $int_difference );
Parameters (3)
- 0. $int_new_count (int) =>
(int) $new_count
- The int new count.
- 1. $topic_id (unknown)
- The topic id.
- 2. $int_difference (int) =>
(int) $difference
- The int difference.
Usage
- To run the hook, copy the example below.
- $int_new_count = apply_filters( 'bbp_bump_topic_reply_count', $int_new_count, $topic_id, $int_difference );
- if ( !empty( $int_new_count ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bbp_bump_topic_reply_count callback
- function filter_bbp_bump_topic_reply_count( $int_new_count, $topic_id, $int_difference ) {
- // make filter magic happen here...
- return $int_new_count;
- };
- // add the filter
- add_filter( 'bbp_bump_topic_reply_count', 'filter_bbp_bump_topic_reply_count', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bbp_bump_topic_reply_count', 'filter_bbp_bump_topic_reply_count', 10, 3 );
Defined (1)
The filter is defined in the following location(s).
- /includes/topics/functions.php
- return (int) apply_filters( 'bbp_bump_topic_reply_count', (int) $new_count, $topic_id, (int) $difference );