Custom meta
-
Hi Greg,
I have detected a small bug (?) in using custom meta in the form renderer.
I have created a new meta for ads called “wpa_brand”. One option could be inserted among a long list of brands thanks to “adverts_field_select” form renderer.
But this meta is added to any new post (page, product, ad…) in WP.
I don’t know why but it seems that “callback_save” => “adverts_save_multi” and “callback_bind” => “adverts_bind_multi” are triggered for any post (used for adverts_field_select, adverts_field_checkbox and adverts_field_account).
I have added an if condition to exit the callback if the post has not an ‘advert’ type but I’d like to know why such behavior ?Many thanks for your feedback.
Antoine
- The topic ‘Custom meta’ is closed to new replies.