Conversation started Jun 8, 2013 at 20:21.
Jun 8, 2013 20:21
Does every custom field has a mandatory "_" as a first carachter, or am I doing something wrong?
the _ hides the field if I remember correctly
@ruda.almeida nope, not at all. arbitrary names. if I remember right underscore will hide from interface
@Rarst And the custom field's name in the DB is the same name I should use on, say, meta_query()? Because I have a _event_end_date field in the wp_postmeta table and I was trying to reference it without the underscore in meta_query(), but it only works with the underscore.
you should use name exactly as it is created
@ruda.almeida The underscore is just there to keep the field out of the default Custom Fields metabox.
Jun 8, 2013 20:26
Oh, OK.
Thanks!
this is a very poor API
@toscho is there one you consider good API in WP? :) it's a waste to say it for all one by one...
uhm …
it's PHP fault..
WP_Upgrader and its child classes are … an interesting start.
 
Conversation ended Jun 8, 2013 at 20:29.