Dynamic choices and Post Type and custom filter criteria

Hello there!

I’m trying to use dynamic choices do populate a select box using a custom post type created with ACF. I can select the post type properly, but I’d like to filter based on aflag field I have in this custom post type.

I came across this filter –> wpforms_dynamic_choice_post_type_args

that seems to be the place where I could add some filtering criteria but I have no ideia how to refer the args to look into my custom post type and return only data when meeting the filter criteria.

Do you have any docs or guidelines for this?

Thanks in advance

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer