Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_get_member_name() shows empty in 'init' action

  • Avatar of Phuc Pham
    Phuc Pham
    Participant

    @svincoll4

    This code shows empty to me, how can i get the member name from ‘init’ action?

    add_action('init', 'display_member_name');
    function display_member_name(){
    echo bp_get_member_name();
    }

You must be logged in to reply to this topic.