Created
February 15, 2018 20:05
-
-
Save kimcoleman/b7a17d5cdaff5f5375fdec502fe00c3e to your computer and use it in GitHub Desktop.
Use this recipe to add the [pmpro_member_profile] to your bbPress user profile page.
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 | |
/* | |
Use this recipe to add the [pmpro_member_profile] to your bbPress user profile page. | |
*/ | |
function insert_pmpro_member_profile_shortcode() { | |
$user_id = bbp_get_user_id( 0, true, false ); | |
echo do_shortcode( '[pmpro_member_profile user_id="' . $user_id . '"]' ); | |
} | |
add_action( 'bbp_template_before_user_profile', 'insert_pmpro_member_profile_shortcode', 15, 0 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment