<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Importing multiple forms on plugin activation</title>
		<link>https://legacy.forums.gravityhelp.com/topic/importing-multiple-forms-on-plugin-activation</link>
		<description>Gravity Support Forums Topic: Importing multiple forms on plugin activation</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 20:16:50 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/importing-multiple-forms-on-plugin-activation" rel="self" type="application/rss+xml" />

		<item>
			<title>NWTD on "Importing multiple forms on plugin activation"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/importing-multiple-forms-on-plugin-activation#post-251252</link>
			<pubDate>Mon, 13 May 2013 17:17:23 +0000</pubDate>
			<dc:creator>NWTD</dc:creator>
			<guid isPermaLink="false">251252@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm currently importing a single form upon my plugin's activation. Here is the code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;define(&#38;quot;GF_IMPORT_FILE&#38;quot;, plugins_url( &#38;#39;templates/get-a-free-estimate.xml&#38;#39; , __FILE__ ));
function nwtd_lpfs_import_form() {
	if(defined(&#38;quot;GF_IMPORT_FILE&#38;quot;) &#38;amp;&#38;amp; !get_option(&#38;quot;gf_imported_file&#38;quot;)){
        GFExport::import_file(GF_IMPORT_FILE);
        update_option(&#38;quot;gf_imported_file&#38;quot;, true);
    }
}
add_action(&#38;#39;init&#38;#39;, &#38;#39;nwtd_lpfs_import_form&#38;#39; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is it possible to import multiple forms using the above code? I'm not exactly sure how i'd go about it.&#60;/p&#62;
&#60;p&#62;TIA
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
