<?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: RGFormsModel::get_lead_count()</title>
		<link>https://legacy.forums.gravityhelp.com/topic/rgformsmodelget_lead_count</link>
		<description>Gravity Support Forums Topic: RGFormsModel::get_lead_count()</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 02:50:28 +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/rgformsmodelget_lead_count" rel="self" type="application/rss+xml" />

		<item>
			<title>fr35ht on "RGFormsModel::get_lead_count()"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/rgformsmodelget_lead_count#post-46473</link>
			<pubDate>Mon, 16 Jan 2012 11:33:35 +0000</pubDate>
			<dc:creator>fr35ht</dc:creator>
			<guid isPermaLink="false">46473@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Correction to the above. If I enter the form id (e.g. &#34;1&#34;) the function returns 0 (zero) even though there are submissions for the logged in user.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>fr35ht on "RGFormsModel::get_lead_count()"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/rgformsmodelget_lead_count#post-46371</link>
			<pubDate>Sat, 14 Jan 2012 13:03:11 +0000</pubDate>
			<dc:creator>fr35ht</dc:creator>
			<guid isPermaLink="false">46371@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm trying to figure out a way to count the number of times a logged in user has submitted a form.&#60;/p&#62;
&#60;p&#62;Searching the forum I came across WPSpecialits post and Marsius's post regarding:&#60;br /&#62;
 the get_lead_count function.&#60;/p&#62;
&#60;p&#62;I just can't get it to work.&#60;/p&#62;
&#60;p&#62;Here's what I've tried:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if (is_user_logged_in()){
  $user_info = get_userdata( $current_user-&#38;gt;ID); //this bit works and pulls the user id.
$entry_count = RGFormsModel :: get_lead_count( $form_id, $user_info-&#38;gt;user_login); //This bit doesn&#38;#39;t work - if i echo $entry_count i get nothing!!&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
