How to retrieve current wordpress profile page URL?
How to retrieve current wordpress profile page URL?
How to retrieve current wordpress profile page URL?
Unfortunately I didn’t receive any reply. I did it a little different … and it works. I just combine them both and I have that result which works fine. add_action( ‘user_profile_update_errors’, ‘validate_steamid_field’ , 10, 3); function validate_steamid_field(&$validation_errors, $update = null, &$user){ if ( isset( $_FILES[‘custom_avatar’] ) && !empty($_FILES[‘custom_avatar’]) && file_exists($_FILES[‘custom_avatar’][‘tmp_name’]) ) { //we check if … Read more
You could very easily do a check to see if that field already had a value in the database and if it does, display the name, if it doesn’t, display a form field. You haven’t provided any code so my example below is a really loose snippet of pseudo-code showing the the method. <?php $current_user … Read more
Allow logged in users to store and display some data
My solution would be this: function get_all_user_data($user_id) { $user_data = get_userdata($user_id); $login = $user_data->user_login; $customer_array = new WC_Customer( $user_id ); $customer = $customer_array->get_data(); $billing_first_name = $customer[billing][first_name]; $shipping_first_name = $customer[shipping][first_name]; } add_action(‘user_register’,’get_all_user_data’); add_action(‘profile_update’,’get_all_user_data’); The array setup for the Customer arrays [billing] and [shipping] is as so (you can just change my values and get different data … Read more
Excluding Specific Fields from Profile Builder Registration Form
Redirecting a buddyboss profile tab to a different tab if not subscribed to a specific membership
user-edit.php profile options on TABS
I am using jquery for this, please put this code inside the function.php of your theme. add_action(‘admin_head’,’custom_handler_for_pass_js’); if ( ! function_exists( ‘custom_handler_for_pass_js’ ) ) { function custom_handler_for_pass_js() { ?> <script type=”text/javascript”> jQuery( document ).ready(function() { jQuery(‘.wp-generate-pw’).click(function(){ jQuery(“#pass1”).keyup(function(){ if(jQuery( “#pass1” ).hasClass( “strong” )){ jQuery(‘#submit’).prop(‘disabled’, false); }else{ jQuery(‘#submit’).prop(‘disabled’, true); } }); }); }); </script> <?php }} This … Read more
WP Use Profile Fields is missing