XF 2.2 How to display total forum users on wordpress site? | Xenforo 2 API

nakedzombo

Member
Hello everyone! I'm looking to set up PHP code to return data from the xenforo 2 API. I want to display my total users on a webpage not connected to my xenforo forums. How can I achieve this by using the xenforo API and remotely displaying the JSON return data into PHP?

chrome_MgXmuWwaKl.webp
Code_FPlgtFBnw4.webp
chrome_Trnm1atItY.webp
 
My WP plugin XFtoWP already efficiently stores this and other data for you that can be accessed with a simple call from the wp_options table:


Otherwise, from the looks of your code you can do a var dump on $data to see what info you can access.
 
Back
Top Bottom