bb_post_time
The BuddyPress bb post time hook.
Description
Parameters (2)
- 0. $bb_get_post_time — Optional. (string) =>
bb_get_post_time( array('format' => 'mysql') + $args )
- The bb get post time.
- 1. $args (unknown)
- The args.
Usage
- To run the hook, copy the example below.
- $bb_get_post_time = apply_filters( 'bb_post_time', $bb_get_post_time, $args );
- if ( !empty( $bb_get_post_time ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bb_post_time callback
- function filter_bb_post_time( $bb_get_post_time, $args ) {
- // make filter magic happen here...
- return $bb_get_post_time;
- };
- // add the filter
- add_filter( 'bb_post_time', 'filter_bb_post_time', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bb_post_time', 'filter_bb_post_time', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /bp-forums/bbpress/bb-includes/functions.bb-template.php
- $time = apply_filters( 'bb_post_time', bb_get_post_time( array('format' => 'mysql') + $args ), $args );