Changeset 6563 for trunk/src/includes/core/options.php
- Timestamp:
- 06/16/2017 04:56:02 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/includes/core/options.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/core/options.php
r6544 r6563 43 43 '_bbp_allow_topic_tags' => 1, // Allow topic tagging 44 44 '_bbp_allow_forum_mods' => 1, // Allow per-forum moderation 45 '_bbp_allow_super_mods' => 0, // Allow mods to edit users 45 46 '_bbp_allow_threaded_replies' => 0, // Allow threaded replies 46 47 '_bbp_allow_search' => 1, // Allow forum-wide search … … 409 410 * 410 411 * @param bool $default Optional. Default value true. 411 * @uses get_option() To get the allow per-forum moderators 412 * @uses get_option() To get the allow per-forum moderators setting 412 413 * 413 414 * @return bool Are per-forum moderators allowed? … … 417 418 // Filter & return 418 419 return (bool) apply_filters( 'bbp_allow_forum_mods', (bool) get_option( '_bbp_allow_forum_mods', $default ) ); 420 } 421 422 /** 423 * Are moderators allowed to edit users 424 * 425 * @since 2.6.0 bbPress (r6562) 426 * 427 * @param bool $default Optional. Default value true. 428 * @uses get_option() To get the allow super moderators setting 429 * 430 * @return bool Are moderators allowed to edit users? 431 */ 432 function bbp_allow_super_mods( $default = 0 ) { 433 434 // Filter & return 435 return (bool) apply_filters( 'bbp_allow_super_mods', (bool) get_option( '_bbp_allow_super_mods', $default ) ); 419 436 } 420 437
Note: See TracChangeset
for help on using the changeset viewer.