$plugin ) { if ( true === $active ) { break; } $active = forminator_is_import_plugin_enabled( $plugin ); } $active = apply_filters( 'forminator_are_import_plugins_enabled', $active ); return $active; } /** * Return all the contact forms from thirdparties * * @param string $type type. * * @since 1.7 * @return array list of forms */ function forminator_list_thirdparty_contact_forms( $type ) { // get all forms. $forms = array(); switch ( $type ) { case 'cf7': $forms = get_posts( array( 'post_type' => 'wpcf7_contact_form', 'posts_per_page' => -1, ) ); break; case 'ninjaforms': $forms = Ninja_Forms()->form()->get_forms(); break; case 'gravityforms': $forms = GFAPI::get_forms(); break; } return $forms; }