_wpsc_action_update_option_users_can_register

Automatically turn off "require registration before checkout" if "Anyone can register" is disabled.

Description

_wpsc_action_update_option_users_can_register( (mixed) $old_value, (mixed) $new_value ); 

Parameters (2)

0. $old_value (mixed)
The old value.
1. $new_value (mixed)
The new value.

Usage

  1. if ( !function_exists( '_wpsc_action_update_option_users_can_register' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-ecommerce/wpsc-admin/init.php'; 
  3.  
  4. // The old value. 
  5. $old_value = null; 
  6.  
  7. // The new value. 
  8. $new_value = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = _wpsc_action_update_option_users_can_register($old_value, $new_value); 
  12.  

Defined (1)

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

/wpsc-admin/init.php