# Add vendor profile link to the account menu

**URL:** <https://community.hivepress.io/t/add-vendor-profile-link-to-the-account-menu/3411>\
**Category:** HivePress\
**Created:** [December 15, 2022, 6:15pm UTC](https://community.hivepress.io/t/add-vendor-profile-link-to-the-account-menu/3411 "2022-12-15T18:15:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heizpad](https://community.hivepress.io/letter_avatar_proxy/v4/letter/h/90db22/32.png) [@Heizpad](https://community.hivepress.io/u/Heizpad)\
**Post date:** [December 15, 2022, 6:15pm UTC](https://community.hivepress.io/t/add-vendor-profile-link-to-the-account-menu/3411/1 "2022-12-15T18:15:12Z")

</div>

Hi there!

I noticed there’s a new “View profile” link inside the vendor account settings. However, it’s hidden so barely anyone will find it.

Is there a shortcode or something to add it anywhere on the website? If not, is it possible to add that link to the menu inside the account page? I added a screenshot, the arrow marks the spot where the link should be. Preferably the link should be named “Profile”.

 ![Bildschirm­foto 2022-12-15 um 19.13.07](https://community.hivepress.io/uploads/default/original/2X/8/8b621b7cfbcfd931072735005e5f225dff4992d5.jpeg)

Thank you for your efforts!

---

<div class="post-metadata">

**Author:** ![Heizpad](https://community.hivepress.io/letter_avatar_proxy/v4/letter/h/90db22/32.png) [@Heizpad](https://community.hivepress.io/u/Heizpad)\
**Post date:** [December 16, 2022, 1:24pm UTC](https://community.hivepress.io/t/add-vendor-profile-link-to-the-account-menu/3411/4 "2022-12-16T13:24:54Z")

</div>

I got a message that you edited my original post but no reply yet? Has something went wrong?

---

<div class="post-metadata">

**Author:** ![andrii](https://community.hivepress.io/user_avatar/community.hivepress.io/andrii/32/2951_2.png) [@andrii](https://community.hivepress.io/u/andrii)\
**Post date:** [December 16, 2022, 1:52pm UTC](https://community.hivepress.io/t/add-vendor-profile-link-to-the-account-menu/3411/5 "2022-12-16T13:52:35Z")

</div>

Hi,  
Please try this PHP snippet:

```auto
add_filter(
	'hivepress/v1/menus/user_account',
	function ( $menu ) {
		if ( is_user_logged_in() ) {
			$vendor_id = HivePress\Models\Vendor::query()->filter(
				[
					'user' => get_current_user_id(),
				]
			)->get_first_id();

			if ( $vendor_id ) {
				$menu['items']['vendor_view'] = [
					'label' => 'Vendor Profile',
					'url' => hivepress()->router->get_url( 'vendor_view_page', ['vendor_id' => $vendor_id] ),
					'_order' => 123,
				];
			}
		}

		return $menu;
	},
	1000
);

```

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [January 15, 2023, 1:52pm UTC](https://community.hivepress.io/t/add-vendor-profile-link-to-the-account-menu/3411/6 "2023-01-15T13:52:55Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
