User Export Function Missing
You have to use Export Users for WordPress, Import and export users and customers or Export and Import Users and Customers plugin to export your wodpress users
You have to use Export Users for WordPress, Import and export users and customers or Export and Import Users and Customers plugin to export your wodpress users
I have no idea how this plays with wpForo, but in the standard reset flow rp_key is extracted from the password reset cookie. See wp-login.php: $rp_cookie=”wp-resetpass-” . COOKIEHASH; if ( isset( $_COOKIE[ $rp_cookie ] ) && 0 < strpos( $_COOKIE[ $rp_cookie ], ‘:’ ) ) { list( $rp_login, $rp_key ) = explode( ‘:’, wp_unslash( $_COOKIE[ … Read more
Here is a basic example of a user query I’m using that is working. Please note that I am using the role__in argument instead of the role argument. I’m not sure why the role argument wouldn’t work for you but I know this code works so hopefully it will work for you as well. $args … Read more
You’re setting two different meta_key fields to check on: ‘course’, and ‘clinic’. Try doing it with just one like so: $args = array( ‘orderby’ => ‘display_name’, ‘fields’ => ‘all’, ‘search’ => $search, ‘meta_query’ => array( array( ‘key’ => ‘clinic’, ‘value’ => $search, ‘compare’ => ‘LIKE’ ) ) ); What your current query is doing is … Read more
Here is what I did and it worked for me: $current_day = date(“d”); $current_month = date(“m”); $args = array( ‘orderby’ => ‘login’, ‘order’ => ‘ASC’, ); // The Query $user_query = new WP_User_Query( $args ); // User Loop if ( ! empty( $user_query->results ) ) { foreach ( $user_query->results as $user ) { if ( … Read more
unable to modify user table search results based on meta key
You have an example here: https://codex.wordpress.org/Class_Reference/WP_User_Query#Custom_Field_Parameters Problem with your query is that you use wrong keys. It should be: $args = array ( ‘meta_query’ => array( ‘relation’ => ‘AND’, array( ‘key’ => $campaign_type, ‘value’ => $Campaign_ID, ‘compare’ => ‘=’ ), array( ‘key’ => ‘organisation’, ‘value’ => $userOrg, ‘compare’ => ‘=’ ) )); Longer versions (meta_key, … Read more
You wrote you need to generate a dropdown list with users. As I thought right – not tied to roles. wp_dropdown_users() maybe helpful. It will generate a dropdown list for you. Just checked on my wp install, it’s still returning me a list of all users, doesn’t matter if I logged in as administrator or … Read more
WP doesn’t provide (as far as I remember) hooks specific to CPTs. There are a lot of hooks in WP_Query class to bend the post queries different ways. In most cases they are passed the query object itself, which is used to derive the context (such as is query for specific post type).
Mostly a PHP question but if I understand your question, you want something like this: $args = array( ‘role’ => ‘talent’, ‘order’ => ‘DESC’, ‘orderby’ => ‘user_registered’, ‘meta_key’ => ‘position’, ‘number’ => ’15’ ); $meta = array ( array( ‘key’ => ‘picture’, ‘value’ => array(”), ‘compare’ => ‘NOT IN’ ), array( ‘key’ => ‘position’, ‘value’ … Read more