<?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>
									wpdiscuz_init not triggered - wpDiscuz Subscription Manager				            </title>
            <link>https://gvectors.com/forum/wpdiscuz-subscription-manager/wpdiscuz_init-not-triggered/</link>
            <description>WordPress Plugins Support Forum</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 08 Jun 2026 14:50:00 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: wpdiscuz_init not triggered</title>
                        <link>https://gvectors.com/forum/wpdiscuz-subscription-manager/wpdiscuz_init-not-triggered/#post-42512</link>
                        <pubDate>Thu, 25 Dec 2025 10:20:41 +0000</pubDate>
                        <description><![CDATA[Hi,
We&#039;ve checked and didn&#039;t find such an issue on our test websites.Please let us know the list of plugins you&#039;re using, so we can identify what may be causing the issue.]]></description>
                        <content:encoded><![CDATA[<p>Hi,</p>
<p>We've checked and didn't find such an issue on our test websites.<br /><br />Please let us know the list of plugins you're using, so we can identify what may be causing the issue.</p>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpdiscuz-subscription-manager/">wpDiscuz Subscription Manager</category>                        <dc:creator>Astghik</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpdiscuz-subscription-manager/wpdiscuz_init-not-triggered/#post-42512</guid>
                    </item>
				                    <item>
                        <title>wpdiscuz_init not triggered</title>
                        <link>https://gvectors.com/forum/wpdiscuz-subscription-manager/wpdiscuz_init-not-triggered/#post-42503</link>
                        <pubDate>Tue, 23 Dec 2025 10:34:16 +0000</pubDate>
                        <description><![CDATA[For a client we installed the addon wpDiscuz Subscription Manager, but when we want to use it the wp-admin/admin.php?page=wpdiscuz-subscribe didn&#039;t work, I got a message: &quot;Sorry you are not ...]]></description>
                        <content:encoded><![CDATA[<p>For a client we installed the addon wpDiscuz Subscription Manager, but when we want to use it the <span class="markdown-inline-code leading-"><span>wp-admin/admin.php?page=wpdiscuz-subscribe</span></span> didn't work, I got a message: "Sorry you are not allowed to see this page".</p>
<p>With some help of cursor we figured out that the wpdiscuz_inint action is not used anymore in wpDiscuz.</p>
<section id="markdown-section-229c0511-6c8f-4375-a773-6c70804b6cd6-0" class="markdown-section chat-fade-in" data-markdown-raw="
## Why &#096;wpdiscuz_init&#096; is not triggered" data-section-index="0">
<h2><span>Why </span><span class="markdown-inline-code leading-"><span>wpdiscuz</span><span>_init</span></span><span> is not triggered</span></h2>
</section>
<section id="markdown-section-229c0511-6c8f-4375-a773-6c70804b6cd6-2" class="markdown-section chat-fade-in" data-markdown-raw="
**The problem:**
- The &#096;wpdiscuz_init&#096; action was removed or is no longer triggered in wpDiscuz 7.6.26.
- The Subscribe Manager plugin (version 7.0.9) still uses this old hook.
- This is a compatibility issue between an older addon and a newer core version." data-section-index="2"><span class="markdown-bold-text"><span>The problem:</span></span>
<ul>
<li data-indent="0"><span>The </span><span class="markdown-inline-code leading-"><span>wpdi</span><span>scuz_init</span></span><span> action was removed or i</span><span>s no longer t</span><span>riggered in wpDis</span><span>cuz 7.6.26.</span></li>
</ul>
<ul>
<li data-indent="0"><span>The Subscribe Manager plugin (version 7.0.9)</span><span> still uses t</span><span>his old hook.</span></li>
</ul>
<ul>
<li data-indent="0"><span>This is a compatibili</span><span>ty issue between an older add</span><span>on and a newer core ve</span><span>rsion.</span></li>
</ul>
</section>
<section id="markdown-section-229c0511-6c8f-4375-a773-6c70804b6cd6-4" class="markdown-section chat-fade-in" data-markdown-raw="
**The solution:**" data-section-index="4"><span class="markdown-bold-text"><span>The solution</span><span>:</span></span></section>
<section id="markdown-section-229c0511-6c8f-4375-a773-6c70804b6cd6-5" class="markdown-section chat-fade-in" data-markdown-raw="
The plugin now initializes at multiple points:
1. On the &#096;init&#096; hook (priority 90) — after wpDiscuz loads
2. On the &#096;wpdiscuz_init_options&#096; hook — if wpDiscuz triggers it
3. On the &#096;admin_menu&#096; hook (priority 0) — as a fallback" data-section-index="5"><span>The plug</span><span>in now initiali</span><span>zes at multipl</span><span>e points:</span>
<ol>
<li value="1" data-indent="0"><span>On the </span><span class="markdown-inline-code leading-"><span>init</span></span><span> hook (priority 90) — after wp</span><span>Discuz loads</span></li>
</ol>
<ol>
<li value="2" data-indent="0"><span>On the </span><span class="markdown-inline-code leading-"><span>wpdiscuz_init_options</span></span><span> hook — if wpDiscuz triggers it</span></li>
</ol>
<ol>
<li value="3" data-indent="0"><span>On the </span><span class="markdown-inline-code leading-"><span>admin_me</span><span>nu</span></span><span> hook (priority 0) — as a fallback</span></li>
</ol>
</section>
<section id="markdown-section-229c0511-6c8f-4375-a773-6c70804b6cd6-7" class="markdown-section chat-fade-in" data-markdown-raw="
A check was added to prevent double initialization." data-section-index="7"><span>A che</span><span>ck was added to prevent do</span><span>uble initialization.</span></section>
<section id="markdown-section-229c0511-6c8f-4375-a773-6c70804b6cd6-9" class="markdown-section chat-fade-in" data-markdown-raw="
**What to do:**
1. Refresh the WordPress admin page
2. Test the page: &#096;wp-admin/admin.php?page=wpdiscuz-subscribe&#096;
3. If it still doesn't work, try:
   - Deactivating and reactivating the plugin
   - Clearing cache (if applicable)
   - Checking if wpDiscuz is active" data-section-index="9"><span class="markdown-bold-text"><span>What to do:</span></span>
<ol>
<li value="1" data-indent="0"><span>Refresh the WordPress</span><span> admin page</span></li>
</ol>
<ol>
<li value="2" data-indent="0"><span>Test the page</span><span>: </span><span class="markdown-inline-code leading-"><span>wp-admin/admin.php?page=wpdiscuz-subscribe</span></span></li>
</ol>
<ol>
<li value="3" data-indent="0"><span>If it still doesn't work, try:</span></li>
</ol>
<ul class="nested">
<li class="nested" data-indent="3"><span>Deact</span><span>ivating and reactivating t</span><span>he plugin</span></li>
</ul>
<ul class="nested">
<li class="nested" data-indent="3"><span>Clear</span><span>ing cache (if applic</span><span>able)</span></li>
</ul>
<ul class="nested">
<li class="nested" data-indent="3"><span>C</span><span>hecking if wpDiscuz is active</span></li>
</ul>
</section>
<section id="markdown-section-229c0511-6c8f-4375-a773-6c70804b6cd6-11" class="markdown-section chat-fade-in" data-markdown-raw="
**Recommendation for the future:**" data-section-index="11"><span class="markdown-bold-text"><span>Recommendation for</span><span> the future:</span></span></section>
<section id="markdown-section-229c0511-6c8f-4375-a773-6c70804b6cd6-12" class="markdown-section chat-fade-in" data-markdown-raw="
Consider updating the Subscribe Manager plugin to a version compatible with wpDiscuz 7.6.x, if available. This fix should work, but an official update is better for long-term support." data-section-index="12"><span>Consider</span><span> updating th</span><span>e Subscribe Manager plugin to a v</span><span>ersion compatible with wpDiscuz </span><span>7.6.x, if available. Th</span><span>is fix should</span><span> work, but an offi</span><span>cial update is better for long-term support.</span></section>
<section data-markdown-raw="
Let me know if it works now." data-section-index="14"></section>
<section data-markdown-raw="
Let me know if it works now." data-section-index="14">Possible fix:<br />
<pre contenteditable="false">public function __construct() {
    add_action("init", , 85);
    add_action("admin_notices", , 85);
    // Initialize when wpDiscuz is available
    // Try multiple hooks since wpdiscuz_init was removed in newer wpDiscuz versions
    add_action("init", , 90);                    // &#x2705; After wpDiscuz loads
    add_action("wpdiscuz_init_options", , 85);   // &#x2705; If wpDiscuz triggers this
    // Also check on admin_menu in case wpDiscuz loads late
    add_action("admin_menu", , 0);               // &#x2705; Fallback
}

public function wpdiscuz_init() {
    // Prevent multiple initializations
    if (isset($this-&gt;db) &amp;&amp; $this-&gt;db instanceof wpdSubscribersDBManager) {
        return;
    }
    
    if (function_exists("wpDiscuz")) {
        $this-&gt;apimanager = new GVT_API_Manager(__FILE__, "wpdiscuz_options_page", "wpdiscuz_option_page");
        $this-&gt;db         = new wpdSubscribersDBManager();
        // Register admin menu - use high priority to ensure it runs after wpDiscuz menu is created
        add_action("admin_menu", , 876);
        // ... rest of initialization code ...
    }
}</pre>
</section>
<section data-markdown-raw="
Let me know if it works now." data-section-index="14">For me this works. But maybe you should look to whats the best solution.</section>
<section data-markdown-raw="
Let me know if it works now." data-section-index="14"></section>
<section data-markdown-raw="
Let me know if it works now." data-section-index="14">We don't like to have a local version with alterations. Would be nice if this gets fixed.</section>]]></content:encoded>
						                            <category domain="https://gvectors.com/forum/wpdiscuz-subscription-manager/">wpDiscuz Subscription Manager</category>                        <dc:creator>Jorre</dc:creator>
                        <guid isPermaLink="true">https://gvectors.com/forum/wpdiscuz-subscription-manager/wpdiscuz_init-not-triggered/#post-42503</guid>
                    </item>
							        </channel>
        </rss>
		