Changeset 13181 for trunk/src/bp-activity/bp-activity-functions.php
- Timestamp:
- 12/12/2021 02:58:38 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-functions.php
r13150 r13181 709 709 $retval = true; 710 710 } 711 break; 712 713 /** 714 * Does this activity type support `generated-content`? 715 */ 716 case 'generated-content' : 717 /* 718 * @todo `bp_activity_set_action()` should be improved to include a supports 719 * argument or best we should create a `bp_register_activity_type()` function 720 * to mimic the way WordPress registers post types. For now we'll use a non 721 * extendable workaround. 722 */ 723 $activity_types = array( 'new_member', 'new_avatar' ); 724 725 if ( bp_is_active( 'friends' ) ) { 726 array_push( $activity_types, 'friendship_created' ); 727 } 728 729 if ( bp_is_active( 'groups' ) ) { 730 array_push( $activity_types, 'created_group', 'joined_group' ); 731 } 732 733 if ( bp_is_active( 'xprofile' ) ) { 734 array_push( $activity_types, 'updated_profile' ); 735 } 736 737 $retval = in_array( $activity_type, $activity_types, true ); 711 738 break; 712 739 }
Note: See TracChangeset
for help on using the changeset viewer.