Initial theme import

This commit is contained in:
3wc
2024-05-08 17:15:09 -03:00
parent 15fd8ed889
commit 8bfea394b6
154 changed files with 9077 additions and 1 deletions

View File

@ -0,0 +1,29 @@
<?php
/**
* Edit address form without the form tags
*
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$page_title = ( 'billing' === $load_address ) ? __( 'Billing Address', 'jg-toolbox' ) : __( 'Shipping Address', 'jg-toolbox' );
if ( ! $load_address ) {
wc_get_template( 'myaccount/my-address.php' );
} else {
?>
<h3>
<?php echo esc_html( apply_filters( 'woocommerce_my_account_edit_address_title', $page_title ) ); ?>
</h3>
<?php
do_action( "woocommerce_before_edit_address_form_{$load_address}" );
foreach ( $address as $key => $field ) {
woocommerce_form_field( $key, $field, ! empty( $_POST[ $key ] ) ? wc_clean( $_POST[ $key ] ) : $field['value'] ); // phpcs: ignore.
}
do_action( "woocommerce_after_edit_address_form_{$load_address}" );
}