wccm_autocreate_account

The WooCommerce Checkout Manager wccm autocreate account function.

Description

wccm_autocreate_account( $fields ); 

Parameters (1)

0. $fields
The fields.

Usage

  1. if ( !function_exists( 'wccm_autocreate_account' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-checkout-manager/includes/classes/main.php'; 
  3.  
  4. // The fields. 
  5. $fields = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wccm_autocreate_account($fields); 
  9.  

Defined (1)

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

/includes/classes/main.php  
  1. function wccm_autocreate_account( $fields ) { 
  2. $options = get_option( 'wccs_settings' ); 
  3.  
  4. if ( !empty($options['checkness']['auto_create_wccm_account']) ) { 
  5. ?> 
  6. <script type="text/javascript"> 
  7. jQuery(document).ready(function() { 
  8. jQuery( "input#createaccount" ).prop("checked", "checked"); 
  9. }); 
  10. </script> 
  11.  
  12. <style type="text/css"> 
  13. .create-account { 
  14. display:none; 
  15. </style> 
  16.  
  17. <?php }