Changeset 5834 for trunk/src/includes/core/options.php
- Timestamp:
- 07/15/2015 03:59:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/options.php
r5770 r5834 13 13 /** 14 14 * Get the default site options and their values. 15 * 15 * 16 16 * These option 17 17 * … … 38 38 '_bbp_allow_revisions' => 1, // Allow revisions 39 39 '_bbp_allow_topic_tags' => 1, // Allow topic tagging 40 '_bbp_allow_forum_mods' => 1, // Allow per-forum moderation 40 41 '_bbp_allow_threaded_replies' => 0, // Allow threaded replies 41 42 '_bbp_allow_search' => 1, // Allow forum-wide search … … 233 234 function bbp_allow_topic_tags( $default = 1 ) { 234 235 return (bool) apply_filters( 'bbp_allow_topic_tags', (bool) get_option( '_bbp_allow_topic_tags', $default ) ); 236 } 237 238 /** 239 * Are per-forum moderators allowed 240 * 241 * @since bbPress (r5834) 242 * 243 * @param bool $default Optional. Default value true. 244 * @uses get_option() To get the allow per-forum moderators 245 * 246 * @return bool Are per-forum moderators allowed? 247 */ 248 function bbp_allow_forum_mods( $default = 1 ) { 249 return (bool) apply_filters( 'bbp_allow_forum_mods', (bool) get_option( '_bbp_allow_forum_mods', $default ) ); 235 250 } 236 251
Note: See TracChangeset
for help on using the changeset viewer.