bbp_allow_anonymous
Is the anonymous posting allowed?.
Description
Parameters (1)
- 0. $bool_get_option_bbp_allow_anonymous_default (bool) =>
(bool) get_option( '_bbp_allow_anonymous', $default )
- The bool get option bbp allow anonymous default.
Usage
- To run the hook, copy the example below.
- $bool_get_option_bbp_allow_anonymous_default = apply_filters( 'bbp_allow_anonymous', $bool_get_option_bbp_allow_anonymous_default );
- if ( !empty( $bool_get_option_bbp_allow_anonymous_default ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bbp_allow_anonymous callback
- function filter_bbp_allow_anonymous( $bool_get_option_bbp_allow_anonymous_default ) {
- // make filter magic happen here...
- return $bool_get_option_bbp_allow_anonymous_default;
- };
- // add the filter
- add_filter( 'bbp_allow_anonymous', 'filter_bbp_allow_anonymous', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bbp_allow_anonymous', 'filter_bbp_allow_anonymous', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /includes/core/options.php
- return apply_filters( 'bbp_allow_anonymous', (bool) get_option( '_bbp_allow_anonymous', $default ) );