I have some code (shown below) to prohibit BuddyPress friendship activity on our site, and my theme developer recommended copying buddypress/bp-themes/bp-default/activity/activity-loop.php into my child theme, then making the changes within activity-loop.php. This I fully grasp.
What I don't understand, however, is if I copy the buddypress activity-loop.php into my child theme, does that mean that with each upgrade to the BuddyPress plugin, that I will have to copy activity-loop.php over the child theme's copy to ensure that I pick up any new code enhancements to BuddyPress core, then I must make the edit in the child theme copy as well?
Is there any way to make this code always active without tinkering with activity-loop.php?
<?php if ( 'friendship_created' != bp_get_activity_type() ) : ?> <?php locate_template( array( 'buddypress/activity/entry.php' ), true, false ); ?> <?php endif; ?>
Thank you for your help!