evolve_woocommerce_after_my_account

The evolve evolve woocommerce after my account function.

Description

evolve_woocommerce_after_my_account( $args ); 

Parameters (1)

0. $args
The args.

Usage

  1. if ( !function_exists( 'evolve_woocommerce_after_my_account' ) ) { 
  2. require_once '/library/woo-config.php'; 
  3.  
  4. // The args. 
  5. $args = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = evolve_woocommerce_after_my_account($args); 
  9.  

Defined (1)

The function is defined in the following location(s).

/library/woo-config.php  
  1. function evolve_woocommerce_after_my_account($args) { 
  2. global $woocommerce, $wp; 
  3.  
  4. $user = wp_get_current_user(); 
  5. ?> 
  6.  
  7. <h2 class="edit-account-heading"><?php _e('Edit Account', 'evolve'); ?></h2> 
  8.  
  9. <form class="edit-account-form" action="" method="post"> 
  10. <p class="form-row form-row-first"> 
  11. <label for="account_first_name"><?php _e('First name', 'evolve'); ?> <span class="required">*</span></label> 
  12. <input type="text" class="input-text" name="account_first_name" id="account_first_name" value="<?php esc_attr($user->first_name); ?>" /> 
  13. </p> 
  14. <p class="form-row form-row-last"> 
  15. <label for="account_last_name"><?php _e('Last name', 'evolve'); ?> <span class="required">*</span></label> 
  16. <input type="text" class="input-text" name="account_last_name" id="account_last_name" value="<?php esc_attr($user->last_name); ?>" /> 
  17. </p> 
  18. <p class="form-row form-row-wide"> 
  19. <label for="account_email"><?php _e('Email address', 'evolve'); ?> <span class="required">*</span></label> 
  20. <input type="email" class="input-text" name="account_email" id="account_email" value="<?php esc_attr($user->user_email); ?>" /> 
  21. </p> 
  22. <fieldset> 
  23. <legend><?php _e('Password Change', 'evolve'); ?></legend> 
  24.  
  25. <p class="form-row form-row-wide"> 
  26. <label for="password_current"><?php _e('Current Password (leave blank to leave unchanged)', 'evolve'); ?></label> 
  27. <input type="password" class="input-text" name="password_current" id="password_current" /> 
  28. </p> 
  29. <p class="form-row form-row-wide"> 
  30. <label for="password_1"><?php _e('New Password (leave blank to leave unchanged)', 'evolve'); ?></label> 
  31. <input type="password" class="input-text" name="password_1" id="password_1" /> 
  32. </p> 
  33. <p class="form-row form-row-wide"> 
  34. <label for="password_2"><?php _e('Confirm New Password', 'evolve'); ?></label> 
  35. <input type="password" class="input-text" name="password_2" id="password_2" /> 
  36. </p> 
  37. </fieldset> 
  38. <div class="clear"></div> 
  39.  
  40. <p><input type="submit" class="button small default alignright" name="save_account_details" value="<?php _e('Save changes', 'evolve'); ?>" /></p> 
  41.  
  42. <?php wp_nonce_field('save_account_details'); ?> 
  43. <input type="hidden" name="action" value="save_account_details" /> 
  44. <div class="clearboth"></div> 
  45. </form> 
  46.  
  47. </div> 
  48.  
  49. <?php