'110', /** Settings **********************************************************/ // Lock post editing after 5 minutes '_bbp_edit_lock' => '5', // Throttle post time to 10 seconds '_bbp_throttle_time' => '10', // Favorites '_bbp_enable_favorites' => true, // Subscriptions '_bbp_enable_subscriptions' => true, // Allow anonymous posting '_bbp_allow_anonymous' => false, /** Per Page **********************************************************/ // Topics per page '_bbp_topics_per_page' => '15', // Replies per page '_bbp_replies_per_page' => '15', // Forums per page '_bbp_forums_per_page' => '50', // Topics per RSS page '_bbp_topics_per_rss_page' => '25', // Replies per RSS page '_bbp_replies_per_rss_page' => '25', /** Archive Slugs *****************************************************/ // Forum archive slug '_bbp_root_slug' => 'forums', // Topic archive slug '_bbp_topic_archive_slug' => 'topics', /** Single Slugs ******************************************************/ // Include Forum archive before single slugs '_bbp_include_root' => true, // Forum slug '_bbp_forum_slug' => 'forum', // Topic slug '_bbp_topic_slug' => 'topic', // Reply slug '_bbp_reply_slug' => 'reply', // Topic tag slug '_bbp_topic_tag_slug' => 'tag', /** Other Slugs *******************************************************/ // User profile slug '_bbp_user_slug' => 'users', // View slug '_bbp_view_slug' => 'view', /** Topics ************************************************************/ // Super stickies '_bbp_super_sticky_topics' => '', /** Forums ************************************************************/ // Private forums '_bbp_private_forums' => '', // Hidden forums '_bbp_hidden_forums' => '', ); // Add default options foreach ( $options as $key => $value ) add_option( $key, $value ); // Allow previously activated plugins to append their own options. // This is an extremely rare use-case. do_action( 'bbp_add_options' ); } /** Active? *******************************************************************/ /** * Checks if favorites feature is enabled. * * @since bbPress (r2658) * * @param $default bool Optional.Default value * * @uses get_option() To get the favorites option * @return bool Is favorites enabled or not */ function bbp_is_favorites_active( $default = true ) { return apply_filters( 'bbp_is_favorites_active', (bool) get_option( '_bbp_enable_favorites', $default ) ); } /** * Checks if subscription feature is enabled. * * @since bbPress (r2658) * * @param $default bool Optional.Default value * * @uses get_option() To get the subscriptions option * @return bool Is subscription enabled or not */ function bbp_is_subscriptions_active( $default = true ) { return apply_filters( 'bbp_is_subscriptions_active', (bool) get_option( '_bbp_enable_subscriptions', $default ) ); } /** * Is the anonymous posting allowed? * * @since bbPress (r2659) * * @param $default bool Optional. Default value * * @uses get_option() To get the allow anonymous option * @return bool Is anonymous posting allowed? */ function bbp_allow_anonymous( $default = false ) { return apply_filters( 'bbp_allow_anonymous', get_option( '_bbp_allow_anonymous', $default ) ); } ?>