sc0ttkclark/wordpress-fields-api

Datasources for terms, posts, etc

sc0ttkclark opened this issue · 2 comments

Controls that offer options (muli-checkbox, radio, select) should accept a datasource as an alternative to passing 'choices' an array, or extending the control with your own choices method to build it dynamically.

They should accept a new Datasource class which we should build in support for a few of the main data sources in WordPress such as Posts, Terms, Users, Comments, Post formats, etc..

Talking with @mboynes next week about this some more too, @tomharrigan may have some thoughts as well, given they are both involved with Fieldmanager which does have Datasource classes.

I've got a bunch of stuff put into #57 for this, Datasources only covers getting of data, not saving right now. I'll be looking into more coverage next week after I speak with @mboynes.