Thread Starter
yasol
(@yasol)
If anyone needs it, I didn’t find anything built in so I went for a good old MySql query to get all different scores, and then looked for the index of the current user’s score in the result, looks the most efficient to me.
Here is the query :
$prepared_query = $wpdb->prepare( “SELECT meta_value FROM wp_usermeta WHERE meta_key LIKE ‘global_score’ ORDER BY meta_key ASC” );
$results = $wpdb->get_results( $prepared_query );
Thread Starter
yasol
(@yasol)
I sure will, thank you Steven