prytkova
Forum Replies Created
-
@yuriinalivaiko
Thank you! I’ve found that hook in plugin User Verification.
Tell me please, I can use some functions to add edit form in custom popup?I see that my problem in hook
do_action( 'um_profile_before_header', $args );in profile.php
Moreover I saw admin password when I was editing client’s (role) profile when i was registered under partner (another role). I think it’s huge problem for safety.Hi, if i use that code in my custom form it’s work. But with plugin registration form in hook that doesn’t work.
Maybe the problem is related to what the administrator registers and the filter is used:add_filter( 'um_registration_after_auto_login', '__return_false' );I have now disabled the ajax filter.
I can’t understand my mistake. I use that code to insert:
add_action( 'um_registration_set_extra_data', 'my_registration_set_extra_data', 10, 2 ); function my_registration_set_extra_data( $user_id, $args ) { global $wpdb; $table_name = $wpdb->prefix . "customers"; $fio = $_POST['first_name-151']; $phone = $_POST['phone_number-151']; $email = $_POST['user_email-151']; $partner = $_POST['partner']; $fio_resp = $_POST['responsible-151']; $inn = $_POST['innn-151']; $comp_name = $_POST['name-comp-151']; $address = $_POST['comp-adr-151']; $kpp = $_POST['kpp-151']; $add_date = date("m.d.y"); $wpdb->insert( 'wp_customers', array( 'fio' => $user_id, 'phone' => $phone, 'email' => $email, 'partner' => $partner, 'responsible' => $fio_resp, 'inn' => $inn, 'company_name' => $comp_name, 'address' => $address, 'kpp' => $kpp, 'add_date' => $add_date) ); }And new row not created in table. What am I doing wrong?
Thank you very much! Everything is working
@jpowersdev @liljimmi Thank you very much for your reply!!