Custom User Meta Query

Please visit Source Site
#wordpress #wp #php #snippet #coding
// WP_User_Query arguments $args = array( ‘role’ => ‘Subscriber’, ); // The User Query $user_query = new WP_User_Query( $args ); // The User Loop if ( ! empty( $user_query->results ) ) { foreach ( $user_query->results as $user ) { // do something } } else { // no users found }
The post Custom User Meta Query appeared first on GenerateWP.
Please visit Source Site