One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| <?php | |
| /** | |
| * Get Ip function | |
| */ | |
| function get_current_user_ip() { | |
| if (!empty($_SERVER['HTTP_CLIENT_IP'])) : | |
| $ip = $_SERVER['HTTP_CLIENT_IP']; | |
| elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) : | |
| $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; |
| array( | |
| 'key' => 'field_61f97e8e47295', | |
| 'label' => 'Animation', | |
| 'name' => 'animation', | |
| 'type' => 'select', | |
| 'instructions' => '', | |
| 'required' => 0, | |
| 'conditional_logic' => 0, | |
| 'wrapper' => array( | |
| 'width' => '', |
| <?php | |
| add_action('wp_ajax_register_user_front_end', 'register_user_front_end', 0); | |
| add_action('wp_ajax_nopriv_register_user_front_end', 'register_user_front_end'); | |
| function register_user_front_end() { | |
| $new_user_name = stripcslashes($_POST['new_user_name']); | |
| $new_user_email = stripcslashes($_POST['new_user_email']); | |
| $new_user_password = $_POST['new_user_password']; | |
| $user_nice_name = strtolower($_POST['new_user_email']); | |
| $user_data = array( | |
| 'user_login' => $new_user_name, |