AesopInteractive / lasso

Code Repository for Editus (formerly Lasso) Commercial Plugin
https://edituswp.com
GNU General Public License v2.0
147 stars 25 forks source link

Metabox Option API #79

Closed bearded-avenger closed 9 years ago

bearded-avenger commented 9 years ago

ability for themes to hook into the Lasso Option API and include their own post meta options that Lasso will turn into forms, taking care of security and sanitization.

michaelbeil commented 9 years ago

This is going to be stellar.

bearded-avenger commented 9 years ago

@Shelob9 how can I pass unknown __POST objects through the params() of the internal api? for example, a user creates their own meta fields, we dont know the name of the field, so it’s not coming across in $data

https://github.com/AesopInteractive/lasso/blob/feature/option-api/includes/process/meta.php#L49

bearded-avenger commented 9 years ago

hrm, i may just skirt around this by predictably naming the key name according to the option type.

bearded-avenger commented 9 years ago

Alright so that logic above wont work. If we can't send a entire post object through the internal api might just let this hit admin-ajax

bearded-avenger commented 9 years ago

merged to 0.9.5

bearded-avenger commented 9 years ago

https://gist.github.com/bearded-avenger/a4be4ea9572590f2a8ad

bearded-avenger commented 9 years ago

Alright this is fully working and the last few bugs being sent out with 0.9.6. A sample addon https://github.com/AesopInteractive/lasso-yoast