<?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>
									Hooks for subscription - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/hooks-for-subscription/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Tue, 10 Nov 2026 15:31:22 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Hooks for subscription</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/hooks-for-subscription/#post-100151</link>
                        <pubDate>Fri, 03 Mar 2023 16:10:22 +0000</pubDate>
                        <description><![CDATA[Hi, i need an automatic subscription for some forums, for example id 3 and 4 for a userid
if want to add a function like this
 
function my_um_after_user_is_approved( $user_id ) {
    WP...]]></description>
                        <content:encoded><![CDATA[<p>Hi, i need an automatic subscription for some forums, for example id 3 and 4 for a userid</p>
<p>if want to add a function like this</p>
<p> </p>
<pre contenteditable="false">function my_um_after_user_is_approved( $user_id ) {
    WPF()-&gt;sbscrb-&gt;subscribe( $user_id, 3);
    WPF()-&gt;sbscrb-&gt;subscribe( $user_id, 4);
}</pre>
<p>but i didn't find a function for this. Is there a hook for this ?</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>velten</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/hooks-for-subscription/#post-100151</guid>
                    </item>
							        </channel>
        </rss>
		