bbp_get_user_signature
The bbP Signature bbp get user signature hook.
Description
Parameters (2)
- 0. $signature (unknown)
- The signature.
- 1. $user_id (unknown)
- The user id.
Usage
- To run the hook, copy the example below.
- $signature = apply_filters( 'bbp_get_user_signature', $signature, $user_id );
- if ( !empty( $signature ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bbp_get_user_signature callback
- function filter_bbp_get_user_signature( $signature, $user_id ) {
- // make filter magic happen here...
- return $signature;
- };
- // add the filter
- add_filter( 'bbp_get_user_signature', 'filter_bbp_get_user_signature', 10, 2 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bbp_get_user_signature', 'filter_bbp_get_user_signature', 10, 2 );
Defined (1)
The filter is defined in the following location(s).
- /bbp-signature.php
- return apply_filters( 'bbp_get_user_signature', $signature, $user_id );