<?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>
									List of Hooks - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/list-of-hooks/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 15 Nov 2026 03:41:00 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: List of Hooks</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/list-of-hooks/#post-72302</link>
                        <pubDate>Fri, 16 Sep 2022 17:55:16 +0000</pubDate>
                        <description><![CDATA[@aaronmckeon,
&#039;wpforo_after_delete_post&#039; - args: (array) $post]]></description>
                        <content:encoded><![CDATA[<p>@aaronmckeon,</p>
<p><span style="color: #ff0000">'wpforo_after_delete_post'</span> - args: (array) $post</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/list-of-hooks/#post-72302</guid>
                    </item>
				                    <item>
                        <title>RE: List of Hooks</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/list-of-hooks/#post-71911</link>
                        <pubDate>Thu, 15 Sep 2022 23:30:59 +0000</pubDate>
                        <description><![CDATA[@robert - Thanks!  That worked great.  Can you tell me if there is one for after a post is deleted?]]></description>
                        <content:encoded><![CDATA[<p>@robert - Thanks!  That worked great.  Can you tell me if there is one for after a post is deleted?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>aaronmckeon</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/list-of-hooks/#post-71911</guid>
                    </item>
				                    <item>
                        <title>RE: List of Hooks</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/list-of-hooks/#post-71871</link>
                        <pubDate>Thu, 15 Sep 2022 04:17:32 +0000</pubDate>
                        <description><![CDATA[Hi @aaronmckeon,
This works for topics and posts. So this hook is triggered in both cases:
&#039;wpforo_after_add_post&#039; - args: (array)$post, (array)$topic]]></description>
                        <content:encoded><![CDATA[<p>Hi @aaronmckeon,</p>
<p>This works for topics and posts. So this hook is triggered in both cases:</p>
<p><span style="color: #ff0000">'wpforo_after_add_post'</span> - args: (array)$post, (array)$topic</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/list-of-hooks/#post-71871</guid>
                    </item>
				                    <item>
                        <title>List of Hooks</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/list-of-hooks/#post-71804</link>
                        <pubDate>Tue, 13 Sep 2022 18:33:59 +0000</pubDate>
                        <description><![CDATA[I need to create one custom function that performs an action when a topic or post is created, as well as one if it is deleted.  These are the only hooks I&#039;ve been able to come across by sear...]]></description>
                        <content:encoded><![CDATA[<p>I need to create one custom function that performs an action when a topic or post is created, as well as one if it is deleted.  These are the only hooks I've been able to come across by searching the forum:</p>
<ul>
<li>'wpforo_after_add_topic' - arg: (array)$topic</li>
<li>'wpforo_start_edit_topic' - arg: (array)$topic</li>
<li>'wpforo_after_add_post' - args: (array)$post, (array)$topic</li>
<li>'wpforo_start_edit_post' - args: (array)$post</li>
</ul>
<p>Can you confirm if the after_add ones are the correct ones to use?  What happens if a post is held for moderation?  Does the hook only fire when it's published?  Also, what hook would I use for if the post is deleted?  Am I to interpret from above that the post and/or topic ID's are the arguments being passed as $post and $topic?  Thanks for clarifying.</p>
<p>-- Aaron</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>aaronmckeon</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/list-of-hooks/#post-71804</guid>
                    </item>
							        </channel>
        </rss>
		