-
Notifications
You must be signed in to change notification settings - Fork 566
Description
Hi Justin, et all,
Thanks for much for your sharing hard work on CMB2. It's definitely the best out there, we applaud you.
I'm having an issue setting default on taxonomy_select. At the time of writing, line 665 of includes\CMB2_Types.php::$saved_term has a ternary with $this->get_object_terms() taking precedence over default. get_object_terms() gets the select by using something stored as a cmb-cache. This probably has its purpose. Unfortunately, I'm trying to use taxonomy_select with dynamic data from a callback to set the default. This is important because it allows the same form for New and Edit. That other cached value is causing the intended default (from data specific to the post) to be ignored.
I'm going to see if I can workaround this using the filters. My use may be an edge case, but thought you should know this feels like an unintended consequence. Thanks. Keep rocking.