Account menu Link position
-
Quick question.
I’ve been trying to move the License Keys link in “your account” from under log-out to elsewhere.
Been looking at
… wp-content\plugins\license-manager-for-woocommerce\includes\integrations\woocommerce\MyAccount.phpAny hint as to how to reposition this link?
Also tried this with Code Snippets, but it leaves the link/url to 0.
add_filter ( 'woocommerce_account_menu_items', 'lmfwc_customize_account_menu_items' ); function lmfwc_customize_account_menu_items( $menu_items ){ // Add new Custom URL in My Account Menu $new_menu_item = array('woocommerce_account_view-license-keys_endpoint'=> __('Your License keys', 'license-manager-for-woocommerce')); $new_menu_item_position=3; array_splice( $menu_items, ($new_menu_item_position-1), 0, $new_menu_item ); return $menu_items; }
Thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Account menu Link position’ is closed to new replies.