<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Cannot add new topic via Gravity Forms - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/cannot-add-new-topic-via-gravity-forms/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 15 Sep 2026 21:29:27 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Cannot add new topic via Gravity Forms</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/cannot-add-new-topic-via-gravity-forms/#post-108799</link>
                        <pubDate>Fri, 01 Mar 2024 10:44:56 +0000</pubDate>
                        <description><![CDATA[To utilize wpForo objects effectively, ensure they are called in the appropriate sequence. These objects should be invoked before initialization. Therefore, each hook should be executed afte...]]></description>
                        <content:encoded><![CDATA[<p>To utilize wpForo objects effectively, ensure they are called in the appropriate sequence. These objects should be invoked before initialization. Therefore, each hook should be executed after the wpforo_core_inited hook.<br /><br />For example:<br /><br /></p>
<pre contenteditable="false">add_action( 'wpforo_core_inited', function(){
    //your custom code
    // e.g. 
   // WPF()-&gt;topic-&gt;add( $topic );
} );
</pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Sofy</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/cannot-add-new-topic-via-gravity-forms/#post-108799</guid>
                    </item>
				                    <item>
                        <title>RE: Cannot add new topic via Gravity Forms</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/cannot-add-new-topic-via-gravity-forms/#post-108783</link>
                        <pubDate>Thu, 29 Feb 2024 09:38:16 +0000</pubDate>
                        <description><![CDATA[I&#039;ve already sent this topic to the developers. I&#039;ll keep you updated once I get a response from them.]]></description>
                        <content:encoded><![CDATA[<p>I've already sent this topic to the developers. I'll keep you updated once I get a response from them.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Sofy</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/cannot-add-new-topic-via-gravity-forms/#post-108783</guid>
                    </item>
				                    <item>
                        <title>Cannot add new topic via Gravity Forms</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/cannot-add-new-topic-via-gravity-forms/#post-108777</link>
                        <pubDate>Wed, 28 Feb 2024 17:13:37 +0000</pubDate>
                        <description><![CDATA[I&#039;m not expecting any help with integrations, but I&#039;m wondering if there is something blocking me from being able to add a new topic from one of the Gravity Form action hooks. If I use the f...]]></description>
                        <content:encoded><![CDATA[<p>I'm not expecting any help with integrations, but I'm wondering if there is something blocking me from being able to add a new topic from one of the Gravity Form action hooks. If I use the following code on a test page, I can add a topic just fine, but when I add it to a GF hook, such as 'gform_pre_submission' or 'gform_after_submission', I get an error saying I cannot use <strong>add()</strong> on NULL. I debug <strong>WPF()</strong> and it shows the object just fine, so the function is being called, but the 'topic' argument is showing blank. I did the same thing where it worked on a page and the 'topic' argument is showing an empty object instead. Also debugged <strong>WPF()-&gt;topic</strong> and it shows an empty object on the page, but NULL from the GF hook. Any suggestions to get this to work?</p>
<pre contenteditable="false">$args = ;
$add_topic = WPF()-&gt;topic-&gt;add( $args);</pre>
<p><br />I also tried working around it by creating my own function that adds new table rows to the database, but it causes issues with being able to delete topics and posts, and some don't show up, so I know there is other stuff I'm missing.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>apos37</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/cannot-add-new-topic-via-gravity-forms/#post-108777</guid>
                    </item>
							        </channel>
        </rss>
		