bbp_get_topic_caps
Return topic capabilities.
Description
(array) apply_filters( 'bbp_get_topic_caps', $array );
Returns (array)
Topic capabilities
Parameters (1)
- 0. $array — Optional.
- The array.
Usage
- To run the hook, copy the example below.
- $array = apply_filters( 'bbp_get_topic_caps', $array );
- if ( !empty( $array ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bbp_get_topic_caps callback
- function filter_bbp_get_topic_caps( $array ) {
- // make filter magic happen here...
- return $array;
- };
- // add the filter
- add_filter( 'bbp_get_topic_caps', 'filter_bbp_get_topic_caps', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bbp_get_topic_caps', 'filter_bbp_get_topic_caps', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /includes/topics/capabilities.php
- return apply_filters( 'bbp_get_topic_caps', array (