bbp_admin_setting_callback_editlock()
Edit lock setting field
Description Description
Source Source
File: includes/admin/settings.php
function bbp_admin_setting_callback_editlock() { // Start the output buffer for the second option ob_start(); ?> </label> <label for="_bbp_edit_lock"> <input name="_bbp_edit_lock" id="_bbp_edit_lock" type="number" min="0" step="1" value="<?php bbp_form_option( '_bbp_edit_lock', '5' ); ?>" class="small-text"<?php bbp_maybe_admin_setting_disabled( '_bbp_edit_lock' ); ?> /> <?php $select = ob_get_clean(); ?> <label for="_bbp_allow_content_edit"> <input name="_bbp_allow_content_edit" id="_bbp_allow_content_edit" type="checkbox" value="1" <?php checked( bbp_allow_content_edit( true ) ); bbp_maybe_admin_setting_disabled( '_bbp_allow_content_edit' ); ?> /> <?php printf( esc_html__( 'Allow users to edit their content for %s minutes after posting', 'bbpress' ), $select ); ?> </label> <p class="description"><?php esc_html_e( 'If checked, setting to "0 minutes" allows editing forever.', 'bbpress' ); ?></p> <?php }
Changelog Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |