Dynamic link to bp profile in function below?
-
Hi all, I’m really stuck on something and wondered if anybody could help – sorry if it’s super simple, I can usually get this stuff working pronto, but I’m clearly missing something here as I can’t get this working! I want a dynamic link to the buddypress profile in the function below, but nothing I try works! I need something like bp_loggedin_user_domain
Can anyone help with what I’d put here
,'url' => ''
– here it is in full:add_filter('wcmp_vendor_dashboard_nav', 'add_wcmp_vendor_dashboard_nav'); function add_wcmp_vendor_dashboard_nav($nav) { $nav['custom_nav'] = array( 'label' => __('My Profile', 'dc-woocommerce-multi-vendor') // label of the menu ,'url' => '' , 'capability' => true , 'position' => 1 //menu position , 'submenu' => array() // submenu items , 'link_target' => '_blank' // target window _blank or _self , 'nav_icon' => 'dashicons dashicons-admin-site' // menu icon wordpress dashicons resource (https://developer.wordpress.org/resource/dashicons/) );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.