Home › Forums › ACF PRO › Trick: retrieve Formidable Pro Forms in ACF › Reply To: Trick: retrieve Formidable Pro Forms in ACF
Much appreciated the inspiration, but I modified the get_forms()
function, because it is too much bound to the produced HTML. I prefer to rely directly on the database. Have not modified other snippet, so I’m thankful to @nicmare 🙂
function get_forms(){
$results = array();
foreach (FrmForm::get_published_forms() as $published_form) {
$results[$published_form->id] = $published_form->name;
}
return $results;
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.