[wp-meta] [Making WordPress.org] #2940: WordCamp Attendee JSON
Making WordPress.org
noreply at wordpress.org
Wed Nov 8 14:12:31 UTC 2017
#2940: WordCamp Attendee JSON
----------------------------------------+-----------------------
Reporter: codexdemon | Owner:
Type: enhancement | Status: assigned
Priority: low | Milestone:
Component: WordCamp Site & Plugins | Resolution:
Keywords: needs-patch good-first-bug |
----------------------------------------+-----------------------
Comment (by igmoweb):
@iandunn
I'm uploading a new patch. I had to add `'custom-fields'` to `support`
array when the post type is registered. I'm not sure if there's any
security concern about it but I had no other way if I wanted to return the
`meta` array in the response.
The questions are still missing but I don't really know if adding a new
tab in Camptix settings would worth it as I guess no WC organizer will
care about the REST API. I think the Twitter username and site URL would
be more interesting to add. I see that there are a few actions hooked into
the attendees shortcode like `camptix_question_field_twitter`. I'm
thinking if it would be a good idea to check if `has_action(
'camptix_question_field_twitter' )` or similar and then display that field
in the response or not. I can't think right now on another way to decide
if the field should appear or not.
--
Ticket URL: <https://meta.trac.wordpress.org/ticket/2940#comment:8>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org
More information about the wp-meta
mailing list