Function in a wordpress shortcode

from days i have a problem, sorry for my bad english.
I’ve wordpress with buddypress + woocommerce + wc vendors pro.
I need show member products list inside his buddypress profile.
This list is called by shortcode:
echo do_shortcode( ‘[wcv_products vendor=”USERNAMEHERE”]’ );
I think to resolve with the user buddypress fullname into shortcode.
I try with:
$myhope = bp_core_get_user_displayname(bp_user_fullname() );
echo do_shortcode( ‘[wcv_products vendor=”‘.$myhope.'”]’ );
But without success. The page is blank. I wrong the sintax?

Read more here:: Function in a wordpress shortcode

Leave a Reply

Your email address will not be published. Required fields are marked *