bbp_admin_setting_callback_throttle()
Throttle setting field
Description Description
Source Source
File: includes/admin/settings.php
function bbp_admin_setting_callback_throttle() { // Start the output buffer for the second option ob_start(); ?> </label> <label for="_bbp_throttle_time"> <input name="_bbp_throttle_time" id="_bbp_throttle_time" type="number" min="0" step="1" value="<?php bbp_form_option( '_bbp_throttle_time', '10' ); ?>" class="small-text"<?php bbp_maybe_admin_setting_disabled( '_bbp_throttle_time' ); ?> /> <?php $select = ob_get_clean(); ?> <label for="_bbp_allow_content_throttle"> <input name="_bbp_allow_content_throttle" id="_bbp_allow_content_throttle" type="checkbox" value="1" <?php checked( bbp_allow_content_throttle( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_content_throttle' ); ?> /> <?php printf( esc_html__( 'Allow flood protection by throttling users for %s seconds after posting', 'bbpress' ), $select ); ?> </label> <p class="description"><?php esc_html_e( 'Use this to discourage users from spamming your forums.', 'bbpress' ); ?></p> <?php }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |