bbp_current_user_can_access_create_forum_form
The bbPress bbp current user can access create forum form hook.
Description
Parameters (1)
- 0. $bool_retval (bool) =>
(bool) $retval
- The bool retval.
Usage
- To run the hook, copy the example below.
- $bool_retval = apply_filters( 'bbp_current_user_can_access_create_forum_form', $bool_retval );
- if ( !empty( $bool_retval ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bbp_current_user_can_access_create_forum_form callback
- function filter_bbp_current_user_can_access_create_forum_form( $bool_retval ) {
- // make filter magic happen here...
- return $bool_retval;
- };
- // add the filter
- add_filter( 'bbp_current_user_can_access_create_forum_form', 'filter_bbp_current_user_can_access_create_forum_form', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bbp_current_user_can_access_create_forum_form', 'filter_bbp_current_user_can_access_create_forum_form', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /includes/users/template.php
- return (bool) apply_filters( 'bbp_current_user_can_access_create_forum_form', (bool) $retval );