Created
October 26, 2021 13:14
-
-
Save Alimir/5783cf3264eae930ce909a75909139b0 to your computer and use it in GitHub Desktop.
Redirect bbPress profiles to WP ULike profile builder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function wp_ulike_get_user_profile_url( $user_id = 0 ){ | |
return wp_ulike_pro_get_user_profile_permalink( $user_id ); | |
} | |
add_filter( 'bbp_pre_get_user_profile_url', 'wp_ulike_get_user_profile_url' ); | |
add_filter( 'bbp_pre_get_user_topics_created_url', 'wp_ulike_get_user_profile_url' ); | |
add_filter( 'bbp_pre_get_user_replies_created_url', 'wp_ulike_get_user_profile_url' ); | |
add_filter( 'bbp_pre_get_user_engagements_url', 'wp_ulike_get_user_profile_url' ); | |
add_filter( 'bbp_pre_get_favorites_permalink', 'wp_ulike_get_user_profile_url' ); | |
add_filter( 'bbp_pre_get_subscriptions_permalink', 'wp_ulike_get_user_profile_url' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment