CMB2 / cmb2-attached-posts

Custom field for CMB2 for attaching posts to a page.
GNU General Public License v2.0
135 stars 62 forks source link

add filter to give us more control over get_all_objects() #58

Open njeffers opened 6 years ago

njeffers commented 6 years ago

Due to the way our in-house framework is built, we have some special objects that we sometimes want to add (outside of a custom post type). Adding a filter here will allow us to do it without hardcoding it. It should also be good all-around to give a bit more control to devs.

MikevHoenselaar commented 4 years ago

Would that mean that I am able to add terms as options as well? Now I only have an option to do Posts and Users. Love to add my own custom options. Did you try to work with 'options_cb' already to get the required result?