Hi Michael,
You can use updated snippet below to adjust the ‘Wishlist’ menu item position:
function tinv_woocommerce_account_menu_items( $menu_items ) {
$output = array_slice( $menu_items, 0, 1, TRUE ) + array( 'tinv_wishlist' => __( 'Wishlist', '' ) ) + array_slice( $menu_items, 1, NULL, TRUE );
return $output;
}
add_filter( 'woocommerce_account_menu_items', 'tinv_woocommerce_account_menu_items' );
function tinv_woocommerce_account_menu_endpoint( $url, $endpoint, $value, $permalink ) {
if ( 'tinv_wishlist' === $endpoint && function_exists( 'tinv_url_wishlist_default' ) ) {
$url = tinv_url_wishlist_default();
}
return $url;
}
add_filter( 'woocommerce_get_endpoint_url', 'tinv_woocommerce_account_menu_endpoint', 4, 10 );
Cheers.