I’m working on a project that uses both SenseiLMS and Woocommerce. I can’t get rid of some automaticly added nav elements.
How it looks
The text in english is what I can’t unset. What I tried so far:
add_filter( 'woocommerce_account_menu_items', 'taxguru_remove_my_account_links' );
function taxguru_remove_my_account_links( $menu_links ){
unset( $menu_links[ 'members-area' ] );
unset( $menu_links[ 'teams' ] );
return $menu_links;
}
`
$menu_link content
-Those items I want to delete are not there. So i assume they have to be added later by something?
2
Answers
you can use code like this to unset menu. Also please make sure about slug.
Change the priority.