• Is it possible to include a category in the get_forms parameters OR are the categories included in the returned form objects? Sorry, I haven’t had time to start testing with this plugin yet. Thanks for any info.

Viewing 1 replies (of 1 total)
  • Yes, These categories are compatible with GFAPI::get_forms();

    You can access those categories like this

    
    $form = GFAPI::get_form( 3 );
    $form['gravityforms-categories']['gforms_categories'];
    

    response would be an array of categories with bool true if they are assigned otherwise false like below

    Array ( [7] => 0 [4] => 0 [5] => 1 [31] => 0 [32] => 0)

Viewing 1 replies (of 1 total)
  • The topic ‘Are these categories compatible with GFAPI::get_forms()?’ is closed to new replies.