' . esc_html( $current_user->display_name ) . '',
esc_url( wc_logout_url( wc_get_page_permalink( 'myaccount' ) ) )
);
?>
Log out', 'billow' ),
esc_html( $current_user->display_name ),
esc_url( wc_logout_url( wc_get_page_permalink( 'myaccount' ) ) )
);
?>
recent orders, manage your shipping and billing addresses, and edit your password and account details.', 'billow' ),
esc_url( wc_get_endpoint_url( 'orders' ) ),
esc_url( wc_get_endpoint_url( 'edit-address' ) ),
esc_url( wc_get_endpoint_url( 'edit-account' ) )
);
?>
__( 'Order', 'billow' ),
'order-date' => __( 'Date', 'billow' ),
'order-status' => __( 'Status', 'billow' ),
'order-total' => __( 'Total', 'billow' ),
'order-actions' => __( 'Actions', 'billow' ),
)
);
$customer_orders = get_posts( apply_filters( // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedVariableFound
'woocommerce_my_account_my_orders_query', array( // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedHooknameFound
'numberposts' => 3,
'meta_key' => '_customer_user',
'meta_value' => get_current_user_id(),
'post_type' => wc_get_order_types( 'view-orders' ),
'post_status' => array_keys( wc_get_order_statuses() ),
)
) );
if ( $customer_orders ) : ?>
$column_name ) : // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedVariableFound ?>
|
= 3) {
break;
} else {
$order = wc_get_order( $customer_order ); // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
$item_count = $order->get_item_count(); // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedVariableFound
?>
$column_name ) : // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedVariableFound ?>
|
get_order_number(); ?>
get_status() ) ); ?>
get_formatted_order_total(), $item_count );
?>
$action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
echo '' . esc_html( $action['name'] ) . '';
}
}
?>
|
__( 'Billing address', 'billow' ),
'shipping' => __( 'Shipping address', 'billow' ),
),
$customer_id
);
} else {
$get_addresses = apply_filters( // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedVariableFound
'woocommerce_my_account_get_addresses', array( // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedHooknameFound
'billing' => __( 'Billing address', 'billow' ),
),
$customer_id
);
}
$oldcol = 1; // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedVariableFound
$col = 1; // phpcs:ignore WPThemeReview.CoreFunctionality.PrefixAllGlobals.NonPrefixedVariableFound
?>
$title ) : // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited ?>