/** * Return an instance of this class. * * @return object A single instance of this class. */ public static function get_instance() { // If the single instance hasn't been set, set it now. if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }
* * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @author WooThemes * @package WooCommerce/Templates * @version 2.6.0 */ if (!defined('ABSPATH')) { exit; } $fields = Brasa_WC_Extra_Fields::get_instance()->get_billing_only_meta_fields(); $user = wp_get_current_user(); do_action('woocommerce_before_edit_account_form'); ?> <form class="woocommerce-EditAccountForm edit-account" action="" method="post"> <?php do_action('woocommerce_edit_account_form_start'); ?> <input type="hidden" name="wc_edit_my_account_form" value="true"/> <p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first"> <label for="account_first_name"><?php _e('First name', 'woocommerce'); ?>