Changeset 13870 for trunk/src/bp-core/bp-core-options.php
- Timestamp:
- 05/24/2024 05:43:34 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-options.php
r13533 r13870 62 62 // Group Cover image uploads. 63 63 'bp-disable-group-cover-image-uploads' => false, 64 65 // Allow Group Activity Deletions. 66 'bp-disable-group-activity-deletions' => false, 64 67 65 68 // Allow users to delete their own accounts. … … 587 590 588 591 /** 592 * Are group activity deletions disabled? 593 * 594 * @since 14.0.0 595 * 596 * @param bool $default Optional. Fallback value if not found in the database. 597 * Default: false. 598 * @return bool True if group activity deletions are disabled, otherwise false. 599 */ 600 function bp_disable_group_activity_deletions( $default = false ) { 601 602 /** 603 * Filters whether or not group creator, group admin or group mod are able to delete group activity posts. 604 * 605 * @since 14.0.0 606 * 607 * @param bool $value Whether or not group creator, group admin or group mod are able to delete group activity post. 608 */ 609 return (bool) apply_filters( 'bp_disable_group_activity_deletions', (bool) bp_get_option( 'bp-disable-group-activity-deletions', $default ) ); 610 } 611 612 /** 589 613 * Are members able to delete their own accounts? 590 614 *
Note: See TracChangeset
for help on using the changeset viewer.