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
/** * Send the user to a custom page after they have registered. * * @param array[] $fields * @return array[] $fields */ function en_set_custom_redirection_after_registration( $fields ) { if ( ! isset( $_GET[ ‘redirect_to’ ] ) ) { $fields[ ‘redirect_to’…Continue reading
/** * Send the user to a custom page after they have registered. * * @param array[] $fields * @return array[] $fields */ function en_set_custom_redirection_after_registration( $fields ) { if ( ! isset( $_GET[ ‘redirect_to’ ] ) ) { $fields[ ‘redirect_to’…Continue reading
/** * Send the user to a custom page after they have registered. * * @param array[] $fields * @return array[] $fields */ function en_set_custom_redirection_after_registration( $fields ) { if ( ! isset( $_GET[ ‘redirect_to’ ] ) ) { $fields[ ‘redirect_to’…Continue reading
/** * Send the user to a custom page after they have registered. * * @param array[] $fields * @return array[] $fields */ function en_set_custom_redirection_after_registration( $fields ) { if ( ! isset( $_GET[ ‘redirect_to’ ] ) ) { $fields[ ‘redirect_to’…Continue reading
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
if ( ! function_exists( ‘theme_setup_unocss_assets’ ) ) : function theme_setup_unocss_assets() { wp_enqueue_style( ‘unocss-reset’, ‘https://unpkg.com/@unocss/reset/tailwind.css’, array(), null ); wp_enqueue_script( ‘unocss-preset-uno’, ‘https://unpkg.com/@unocss/runtime/uno.global.js’, array(), null, true ); wp_enqueue_script( ‘unocss-preset-icons’, ‘https://unpkg.com/@unocss/runtime/preset-icons.global.js’, array(), null, true ); wp_add_inline_script( ‘unocss-preset-icons’, ‘window.__unocss = { presets: [ () =>…Continue reading
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