Skip to content

Instantly share code, notes, and snippets.

@mbrughi
Last active September 25, 2017 06:42
Show Gist options
  • Save mbrughi/0bd4d981fb4f6236384a9e173358c246 to your computer and use it in GitHub Desktop.
Save mbrughi/0bd4d981fb4f6236384a9e173358c246 to your computer and use it in GitHub Desktop.
Woocommerce MyAccount Sorting Links
// Woocommerce MyAccount Sorting Links
// Ordinamento funzioni nella pagina my account di woocommerce
function mb_woo_my_account_order() {
$myorder = array(
'dashboard' => __( 'Bacheca', 'woocommerce' ),
'points' => __( 'Raccolta Punti', 'woocommerce' ),
'cataloghi-per-rivenditori' => __( 'Cataloghi per rivenditori', 'woocommerce' ),
'orders' => __( 'Storico Ordini', 'woocommerce' ),
'my-account-fatture' => __( 'Le tue fatture', 'woocommerce' ),
'termini-e-condizioni' => __( 'Condizioni D\'Acquisto', 'woocommerce' ),
'privacy' => __( 'Informativa Privacy', 'woocommerce' ),
'edit-account' => __( 'Dettagli Account', 'woocommerce' ),
'edit-address' => __( 'Indirizzi per la consegna', 'woocommerce' ),
'customer-logout' => __( 'Logout', 'woocommerce' ),
);
return $myorder;
}
add_filter ( 'woocommerce_account_menu_items', 'mb_woo_my_account_order' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment