Fixed wc_get_account_menu_items() endpoints

This commit is contained in:
Claudio Sanches 2016-01-19 17:47:36 -02:00
parent 467007ac72
commit 51bc5fe589
1 changed files with 6 additions and 9 deletions

View File

@ -76,14 +76,11 @@ function wc_edit_address_i18n( $id, $flip = false ) {
* @return array * @return array
*/ */
function wc_get_account_menu_items() { function wc_get_account_menu_items() {
$pages = apply_filters( 'woocommerce_account_menu_items', array( return apply_filters( 'woocommerce_account_menu_items', array(
'recent-orders' => __( 'Recent Orders', 'woocommerce' ), 'orders' => __( 'Orders', 'woocommerce' ),
'available-downloads' => __( 'Downloads', 'woocommerce' ), 'downloads' => __( 'Downloads', 'woocommerce' ),
'edit-address' => __( 'Addresses', 'woocommerce' ), 'edit-address' => __( 'Addresses', 'woocommerce' ),
'edit-account' => __( 'Account Details', 'woocommerce' ), 'edit-account' => __( 'Account Details', 'woocommerce' ),
'customer-logout' => __( 'Logout', 'woocommerce' ),
) ); ) );
$pages['customer-logout'] = __( 'Logout', 'woocommerce' );
return $pages;
} }