我添加了以下功能来更改订单并翻译我的Woocommerce帐户导航。除了edit-address/billing
零件:
function wpb_woo_my_account_order()
{
$myorder = array(
\'dashboard\' => __(\'Dashboard\', \'woocommerce\'),
\'wishlist\' => __(\'Wishlist\', \'woocommerce\'),
\'edit-address/billing\' => __(\'Billing details\', \'woocommerce\'),
\'edit-account\' => __(\'Account details\', \'woocommerce\'),
\'customer-logout\' => __(\'Logout\', \'woocommerce\'),
);
return $myorder;
}
add_filter(\'woocommerce_account_menu_items\', \'wpb_woo_my_account_order\');
当我转到我的帐户并单击导航中的账单详细信息时,我得到一个页面未找到URL错误。URL为
/edit-address%2Fbilling/
而不是
/edit-address/billing/
问题是
/
替换为
%2F