Skip to:
Content
Pages
Categories
Search
Top
Bottom

missing small detail to add bp_loggedin_user_domain


  • pryde1919
    Participant

    @pryde1919

    Hi, I’m trying to add this code “bp_loggedin_user_domain();” inside the url, when the user clicks the word myprofile, it will directly go to there profile page, but it gives me error, i think i’m missing some small detail here, can someone help me?

    Thankyou

    there is the code

    function get_dashboard_nav() {
        $urls = array(
    		'myprofile' => array(
                'title' => __( 'MyProfile', 'dokan'),
                'icon'  => '<i class="fa fa-user"></i>',
                'url'   => ' bp_loggedin_user_domain();'
            ),
Viewing 1 replies (of 1 total)

  • Henry Wright
    Moderator

    @henrywright

    You’re using it as a string. Try removing the ' delimiters. For example:

    bp_loggedin_user_domain()

    Note, you also don’t need the semicolon ;

Viewing 1 replies (of 1 total)
  • The topic ‘missing small detail to add bp_loggedin_user_domain’ is closed to new replies.
Skip to toolbar