Answer the question
In order to leave comments, you need to log in
Woocommerce menu priorities in dashboard?
The script adds a new menu to the LC, but it appears at the very end (after "Exit").
How to change location?
/* Add custom links to WC My account menu */
function iconic_account_menu_items( $items ) {
$items['help'] = __( 'Помощь', 'iconic' );
return $items;
}
add_filter( 'woocommerce_account_menu_items', 'iconic_account_menu_items', 10, 1 );
Answer the question
In order to leave comments, you need to log in
I would re-create items by inserting my element where needed and returning a new array.
Saw array sorting methods php.net/manual/ru/array.sorting.php
Your method sticks an element at the end of the array. And so it outputs.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question