I’ve added this code snippet to my functions.php function my_new_contactmethods( $contactmethods ) { $contactmethods['country'] = 'country'; return $contactmethods; } add_filter('user_contactmethods','my_new_contactmethods',10,1); It works perfactly as I wanted. It show an...
  • May 26, 2022
  • 0 Comments
I have added new user meta for a given user. Let’s call it title. Every time I run $user = get_user_by('login',$username); update_user_meta($user->ID, 'title','Manager'); The meta is not updated. Instead,...
  • May 26, 2022
  • 0 Comments
i’m using pods plugin to add new custom fields to user so i added 4 files custom fields and then trying to upload files to this fields from registration...
  • May 26, 2022
  • 0 Comments
I want to use the WordPress query functions and no external plugins for the task. Here is what I have so far: add_filter('user_search_columns', 'user_search_columns_bd' , 10, 3); function user_search_columns_bd($search_columns,...
  • May 23, 2022
  • 0 Comments