• Resolved spyder108

    (@spyder108)


    I am using this code in the following code in userswp/templates/bootstrap/profile-header.php file. When the user selects “no” to having the email public, it will disappear in the more info… tab, but is still visible from the shortcode. Does anyone have a suggestion how to make this one get removed from the profile page as well?

    <div class=”col-12 <?php if(!$uwp_in_user_loop){ ?>col-xl-4 text-xl-right <?php }?> text-center pt-2″>
    <?php
    echo do_shortcode( “[uwp_user_meta key=’email’ css_class=’email-profile’]” );

    if(!$uwp_in_user_loop){echo do_shortcode(“[uwp_user_actions]”);}
    ?>
    </div>

    Thank you

  • The topic ‘How to remove the email from the shortcode when users select no to Public?’ is closed to new replies.