<?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: Import hook?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/import-hook</link>
		<description>Gravity Support Forums Topic: Import hook?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 00:44:33 +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/import-hook" rel="self" type="application/rss+xml" />

		<item>
			<title>David Peralty on "Import hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/import-hook#post-64980</link>
			<pubDate>Fri, 06 Jul 2012 08:09:24 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">64980@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't know of any reason that it shouldn't. Give it a try and let us know if you have any issues.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Scott Hack on "Import hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/import-hook#post-64954</link>
			<pubDate>Fri, 06 Jul 2012 01:33:48 +0000</pubDate>
			<dc:creator>Scott Hack</dc:creator>
			<guid isPermaLink="false">64954@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Curious if this works with sites that are NOT multi site.  Anyone know?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Import hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/import-hook#post-13958</link>
			<pubDate>Mon, 06 Dec 2010 17:44:06 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">13958@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;It sounds like you will need to define your global variable outside of the wp-config.php.&#60;br /&#62;
You just need to make sure it happens before the Gravity Forms init() function. Using the WP &#34;init&#34; hook with a priority lower than 10 should probably be what you need.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;init&#38;#39;,  &#38;#39;set_xml_path&#38;#39;, 9);
function set_xml_path(){
   $xml_path = generate_dinamically();
   define(&#38;quot;GF_IMPORT_FILE&#38;quot;, $xml_path);
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>m4change on "Import hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/import-hook#post-13953</link>
			<pubDate>Mon, 06 Dec 2010 17:01:07 +0000</pubDate>
			<dc:creator>m4change</dc:creator>
			<guid isPermaLink="false">13953@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The problem I have now, is these sites need different absolute urls in their xml (based on the newly created site url).  Generating the xml is easy enough but telling the wp-config where to look for it is a different story.&#60;/p&#62;
&#60;p&#62;I either need:&#60;br /&#62;
a) a unique file name&#60;br /&#62;
b) a unique folder&#60;/p&#62;
&#60;p&#62;to put them in... but I need the wp-config know that unique variable.  Any ideas?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m4change on "Import hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/import-hook#post-13868</link>
			<pubDate>Fri, 03 Dec 2010 15:30:49 +0000</pubDate>
			<dc:creator>m4change</dc:creator>
			<guid isPermaLink="false">13868@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;boom baby
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alex Cancado on "Import hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/import-hook#post-13864</link>
			<pubDate>Fri, 03 Dec 2010 14:42:55 +0000</pubDate>
			<dc:creator>Alex Cancado</dc:creator>
			<guid isPermaLink="false">13864@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can automatically import forms by defining the full path to an XML export file via a global variable &#34;GF_IMPORT_FILE&#34;&#60;br /&#62;
&#60;code&#62;define(&#38;quot;GF_IMPORT_FILE&#38;quot;, &#38;quot;/root/folder/gf_import.xml&#38;quot;);&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m4change on "Import hook?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/import-hook#post-13856</link>
			<pubDate>Fri, 03 Dec 2010 12:03:25 +0000</pubDate>
			<dc:creator>m4change</dc:creator>
			<guid isPermaLink="false">13856@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I don't see any hook for an import function and I would really like to automate the process of importing gravity forms XML upon a sub-site creation in a wordpress multisite network setup.&#60;/p&#62;
&#60;p&#62;Can an import hook be added or is there any hack-arounds for this?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
