Tweak page titles on account pages

This commit is contained in:
Mike Jolley 2016-05-24 19:09:07 +01:00
parent 4a1de6f1de
commit cc41c38ff8
3 changed files with 6 additions and 10 deletions

View File

@ -146,8 +146,8 @@ class WC_Settings_Accounts extends WC_Settings_Page {
),
array(
'title' => __( 'Edit Address', 'woocommerce' ),
'desc' => __( 'Endpoint for the My Account → Edit Address page', 'woocommerce' ),
'title' => __( 'Addresses', 'woocommerce' ),
'desc' => __( 'Endpoint for the My Account → Addresses page', 'woocommerce' ),
'id' => 'woocommerce_myaccount_edit_address_endpoint',
'type' => 'text',
'default' => 'edit-address',

View File

@ -110,10 +110,10 @@ class WC_Query {
$title = __( 'Downloads', 'woocommerce' );
break;
case 'edit-account' :
$title = __( 'Edit Account Details', 'woocommerce' );
$title = __( 'Account Details', 'woocommerce' );
break;
case 'edit-address' :
$title = __( 'Edit Address', 'woocommerce' );
$title = __( 'Addresses', 'woocommerce' );
break;
case 'payment-methods' :
$title = __( 'Payment Methods', 'woocommerce' );

View File

@ -23,24 +23,20 @@ if ( ! defined( 'ABSPATH' ) ) {
$customer_id = get_current_user_id();
if ( ! wc_ship_to_billing_address_only() && wc_shipping_enabled() ) {
$page_title = apply_filters( 'woocommerce_my_account_my_address_title', __( 'My Addresses', 'woocommerce' ) );
$get_addresses = apply_filters( 'woocommerce_my_account_get_addresses', array(
'billing' => __( 'Billing Address', 'woocommerce' ),
'shipping' => __( 'Shipping Address', 'woocommerce' )
), $customer_id );
} else {
$page_title = apply_filters( 'woocommerce_my_account_my_address_title', __( 'My Address', 'woocommerce' ) );
$get_addresses = apply_filters( 'woocommerce_my_account_get_addresses', array(
'billing' => __( 'Billing Address', 'woocommerce' )
), $customer_id );
}
$oldcol = 1;
$col = 1;
$oldcol = 1;
$col = 1;
?>
<h2><?php echo $page_title; ?></h2>
<p>
<?php echo apply_filters( 'woocommerce_my_account_my_address_description', __( 'The following addresses will be used on the checkout page by default.', 'woocommerce' ) ); ?>
</p>