Articles of users

Can i use two different user tables for on WP install?

I like to make a difference between internal use of our WP website and extern by using an seperate users table and usermeta table, i tried this but it doesn’t work if($_POST[‘user_login’]!=’admin-username’) {//or $ip != define(‘CUSTOM_USER_TABLE’, ‘wp_users_extern’); define(‘CUSTOM_USER_META_TABLE’, ‘wp_usermeta_extern’); } How can i make it working? Regards

Retrieve data from post meta meta_key having '_product_fq_image' while having author_id and post type is PRODUCT

How can we retrieve data from postmeta having ‘_product_fq_image’ while having author_id and post type is PRODUCT I have tried this $lt_content_design= get_user_meta( $user_id, ‘lt_content_design’, true ); but how can we use JOIN here for listing only particular user data having posttype is product

WP_User_Query with more than two custom meta values

I am trying to create a custom user query based on users‘ metadata. I have the following query created. $users = new WP_User_Query( array( ‘search’ => ‘*’ . $search_name . ‘*’, ‘meta_query’ => array( ‘relation’ => ‘AND’, array( ‘key’ => ‘Status’, ‘value’ => $search_status, ‘compare’ => ‘LIKE’ ), array( ‘key’ => ‘Operation’, ‘value’ => $search_operation, […]

Export Users and their Advanced Custom Fields

I’ve google it but i am still looking for a solution. Is there a plugin or method to export wordpress users with their advanced custom fields? I don’t want to export ACFs structure but users’ data.

How to disable users changing their display_name?

What would I have to do to prevent users changing their display_name?

Modify function to only return values for the user that’s logged in

I’m trying to modify a function in a plugin so that it only returns the custom post type (venues) of the user that’s logged in (by default it displays all venues). This is my first time customizing a function, so any help would be greatly appreciated! This is what I’ve put into my functions.php file: […]

WordPress Redirect Specific User. Tired of Peter's redirect Plugin its not working

I was trying this since 2days still not a good answer. Tired of Peter’s login its not working. I want to redirect a specific User (Like “John” or someone) to a specific Page. its a hidden one i want only him to access that when he logged. i have managed to add the wordpress login […]

How can i create an array user meta?

I want to create a new user meta that contains array content How can i do this ? Another question : is it true using this code to check if the array user meta exists before creating it ? <?php $key = ‘add_me’; $user_id= get_current_user_id(); $themeta = get_user_meta($user_id , $key, TRUE); if($themeta != ”) { […]

How to share User Database between Two Multisite Installations + More

My situation is a bit different to the other questions/answers I have read online here. Currently I have a WordPress Multisite Installation on Server A. Server A is almost full in terms of Storage/Ram & Connections meaning that an upgrade is out of the question. I have another server, different IP, different host that I […]

List of users with email and role

I’m looking to create a list of all the users on my wordpress site with their email and role. $blogusers = get_users(); // Array of WP_User objects. foreach ( $blogusers as $user ) { echo ‘<span>’ . esc_html( $user->user_email ) . ‘</span>’; echo ‘<span>’ . esc_html( $user->roles ) . ‘</span>’; } This function is sort […]