Changeset 5134
- Timestamp:
- 03/08/2017 08:38:55 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
r5091 r5134 9 9 add_filter( 'bbp_get_forum_pagination_count', '__return_empty_string' ); 10 10 add_action( 'pre_get_posts', array( $this, 'hide_non_public_forums' ) ); 11 add_filter( 'pre_option__bbp_edit_lock', array( $this, 'increase_edit_lock_time' ) ); 11 12 12 13 // Display-related filters and actions. … … 63 64 $query->set( 'post_status', 'publish' ); 64 65 } 66 } 67 68 /** 69 * Increase bbPress' default edit lock time from 5 minutes to 1 hour. 70 * 71 * @return int Filtered edit lock time. 72 */ 73 function increase_edit_lock_time() { 74 return 60; 65 75 } 66 76
Note: See TracChangeset
for help on using the changeset viewer.