WordPress.org provides several API end-points for data about themes and plugins.
For example for plugins there is the plugin_api:
https://developer.wordpress.org/reference/functions/plugins_api/
And the themes API:
https://developer.wordpress.org/reference/functions/themes_api/
But, what about a Support API?
The best option I have so far is to parse data from each forums RSS feed – for example:
https://wordpress.org/support/rss/plugin/export-user-data
But this returns the last 30 replies accross all topics for the specified plugin.
We would like to get
- All the forum topics from the last 3 months
- Each entry in those topics, with info such as author name, date, etc.
Thanks!
1 Answer
That´s no big deal if you got the RSS feed, have a look at it.
There is a pubDate
which you can use to check for the age of the topic. strtotime()
or anything alike will help you to check if that´s older than 30 days.
And you also got a link
-element. This leads you to the topic, which has its own RSS feed, too.
Example:
https://wordpress.org/support/topic/cron-job-to-ftp#post-7943160 => https://wordpress.org/support/rss/topic/cron-job-to-ftp
This is probably not as comfortable as a full API but nevertheless a good way to go.