Get Team ID

function team_current_group_id() {     $current_group    = groups_get_current_group();     $current_group_id = isset( $current_group->id ) ? (int) $current_group->id : 0;       /**      * Filters the ID of the current group.      *      * @since BuddyPress 1.5.0      *      * @param int    $current_group_id ID of the current…Continue reading

Get Team ID

function team_current_group_id() {     $current_group    = groups_get_current_group();     $current_group_id = isset( $current_group->id ) ? (int) $current_group->id : 0;       /**      * Filters the ID of the current group.      *      * @since BuddyPress 1.5.0      *      * @param int    $current_group_id ID of the current…Continue reading

Team Activity Feed

function team_activity_feed() {       // Bail if not viewing a single group or activity is not active.     if ( ! bp_is_active( ‘groups’ ) || ! bp_is_active( ‘activity’ ) || ! bp_is_group() ) {         return;     } ?>       Continue reading

Team Activity Feed

function team_activity_feed() {       // Bail if not viewing a single group or activity is not active.     if ( ! bp_is_active( ‘groups’ ) || ! bp_is_active( ‘activity’ ) || ! bp_is_group() ) {         return;     } ?>       Continue reading

Team Activity Feed

function team_activity_feed() {       // Bail if not viewing a single group or activity is not active.     if ( ! bp_is_active( ‘groups’ ) || ! bp_is_active( ‘activity’ ) || ! bp_is_group() ) {         return;     } ?>       Continue reading

BP Get New Group

function get_team_ID() { $bp = buddypress(); $new_group_id = isset( $bp->groups->new_group_id ) ? $bp->groups->new_group_id : 0; /** * Filters the new group ID. * * @since BuddyPress 1.1.0 * * @param int $new_group_id ID of the new group. */ return (int)…Continue reading

Adding Text/Currency To Progress Bar On Campaign Pages

add_filter( ‘charitable_campaign_builder_progress-bar_field_display’, ‘test_campaign_builder_field_display’, 10, 2 ); function test_campaign_builder_field_display( $html, $campaign_data ) { // search for “Goal:” and add a £ symbol to the goal amount. $html = str_replace( ‘Goal: ‘, ‘Goal: £’, $html ); return $html; }Continue reading

//bitlash Login

add_filter( ‘login_head’, function () { // Update the line below with the URL to your own logo. // Adjust the Width & Height accordingly. $custom_logo = ‘https://bitla.sh/wp-content/uploads/2024/03/Bitlash-Logo-Outline.svg’; $logo_width = 260; $logo_height = 70; printf( ‘ ‘, $custom_logo, $logo_width, $logo_height );…Continue reading

Add Featured Images to RSS Feeds

/** * Add the post thumbnail, if available, before the content in feeds. * * @param string $content The post content. * * @return string */ function wpcode_snippet_rss_post_thumbnail( $content ) { global $post; if ( has_post_thumbnail( $post->ID ) ) {…Continue reading