ePascalC / bbp-API

An API for bbPress
15 stars 6 forks source link

Custom post-meta #42

Open tkserver opened 7 years ago

tkserver commented 7 years ago

I have a fun and perhaps useful idea for my bbPress app. I think it would be a good way to promote the app by showing in the forum that the post/reply was posted from the app. In the forum posts somewhere could be an icon and/or small text saying "Posted from the iOS app" or "Via the Android app." I thought using post-meta would be a good way to capture that data. It could be useful to track how many users are on www, or another platform like android/ios.

Say the user is on the app in iOS and they create a topic. My app code populates the post meta with the meta-key and platform name. That info is posted along with the content, user info, forum ID etc.

Post-meta on the API could add a dimension of customization for a developer, and not just used for the idea above. It could store something else of course.

I could also simply make my own meta API and do a 2nd http call to achieve the same results, but thought it would be good for the bbp-api.