<?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: Multisite - Auto load form, but not create new</title>
		<link>https://legacy.forums.gravityhelp.com/topic/multisite-auto-load-form-but-not-create-new</link>
		<description>Gravity Support Forums Topic: Multisite - Auto load form, but not create new</description>
		<language>en-US</language>
		<pubDate>Tue, 21 Apr 2026 00:45:08 +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/multisite-auto-load-form-but-not-create-new" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Multisite - Auto load form, but not create new"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multisite-auto-load-form-but-not-create-new#post-168199</link>
			<pubDate>Mon, 11 Mar 2013 21:32:03 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">168199@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Instead of this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$user = new WP_User( $current_user-&#38;gt;ID );
$res = $user-&#38;gt;add_cap( &#38;#39;gravityforms_create_form&#38;#39;, false );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Can you try:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;[php]
$user = new WP_User( $current_user-&#38;gt;ID );
$user-&#38;gt;remove_cap( &#38;#39;gravityforms_create_form&#38;#39; );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/remove_cap&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/remove_cap&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Miramedia on "Multisite - Auto load form, but not create new"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multisite-auto-load-form-but-not-create-new#post-162120</link>
			<pubDate>Wed, 06 Mar 2013 12:21:28 +0000</pubDate>
			<dc:creator>Miramedia</dc:creator>
			<guid isPermaLink="false">162120@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You can see which capability I am trying to remove. It's in the code: gravityforms_create_form.&#60;/p&#62;
&#60;p&#62;Is there a way to remove the capability to create forms, but leave all other caps?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Multisite - Auto load form, but not create new"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multisite-auto-load-form-but-not-create-new#post-66045</link>
			<pubDate>Thu, 12 Jul 2012 22:59:26 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">66045@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Sorry about &#60;a href=&#34;http://www.gravityhelp.com/forums/topic/multisite-auto-load-form-but-not-create-new#post-65918&#34; rel=&#34;nofollow&#34;&#62;this comment&#60;/a&#62; Miramedia.  I just hadn't seen it used before, I didn't doubt it existed and just wanted to make sure we have the user ID.  If we have the user ID then we must have a problem with the capabilities.&#60;/p&#62;
&#60;p&#62;Are the capabilities for that user actually being changed?  If so, then maybe the wrong capability is being removed and that's why the user still can't create forms?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Miramedia on "Multisite - Auto load form, but not create new"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multisite-auto-load-form-but-not-create-new#post-65956</link>
			<pubDate>Thu, 12 Jul 2012 10:51:23 +0000</pubDate>
			<dc:creator>Miramedia</dc:creator>
			<guid isPermaLink="false">65956@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;No, that's pretty much the same as the snippets I write above. It doesn't work. I haven't checked capabilities internally, but the user can still create new forms.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if( !is_super_admin() ) :
    $user = new WP_User( $current_user-&#38;gt;ID );
    $res = $user-&#38;gt;add_cap( &#38;#39;gravityforms_create_form&#38;#39;, false );
    error_log( &#38;quot;UID: {$current_user-&#38;gt;ID}: &#38;quot;.print_r($res,1) );
  endif;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Logs this: &#60;code&#62;UID: 14:&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Multisite - Auto load form, but not create new"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multisite-auto-load-form-but-not-create-new#post-65952</link>
			<pubDate>Thu, 12 Jul 2012 10:31:24 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">65952@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;What if you changed it to :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action( &#38;#39;admin_init&#38;#39;, &#38;#39;do_cap_stuff&#38;#39; );
function do_cap_stuff(){
  global $current_user;
  get_currentuserinfo();
  if( !is_super_admin() ) :
    $user = new WP_User( $current_user-&#38;gt;ID );
    $user-&#38;gt;add_cap( &#38;#39;gravityforms_create_form&#38;#39;, false );
  endif;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Miramedia on "Multisite - Auto load form, but not create new"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multisite-auto-load-form-but-not-create-new#post-65951</link>
			<pubDate>Thu, 12 Jul 2012 10:25:42 +0000</pubDate>
			<dc:creator>Miramedia</dc:creator>
			<guid isPermaLink="false">65951@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can't believe I feel I have to say this, but no this doesn't work either:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action( &#38;#39;admin_init&#38;#39;, &#38;#39;do_cap_stuff&#38;#39; );
function do_cap_stuff(){
  global $user_ID;
  get_currentuserinfo();
  if( !is_super_admin() ) :
    $user = new WP_User( $user_ID );
    $user-&#38;gt;add_cap( &#38;#39;gravityforms_create_form&#38;#39;, false );
  endif;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Miramedia on "Multisite - Auto load form, but not create new"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multisite-auto-load-form-but-not-create-new#post-65949</link>
			<pubDate>Thu, 12 Jul 2012 10:23:00 +0000</pubDate>
			<dc:creator>Miramedia</dc:creator>
			<guid isPermaLink="false">65949@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_currentuserinfo&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/get_currentuserinfo&#60;/a&#62;&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;Also places the individual attributes into the following separate global variables:

$user_login
$user_ID
$user_email&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Yes I have checked that $user_ID exists.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Multisite - Auto load form, but not create new"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multisite-auto-load-form-but-not-create-new#post-65918</link>
			<pubDate>Thu, 12 Jul 2012 07:54:44 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">65918@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Can you echo $user_ID and see if it contains the actual User ID?  I don't recognize that variable name as a built in global in WordPress.  How are you getting the user ID into this function?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Miramedia on "Multisite - Auto load form, but not create new"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multisite-auto-load-form-but-not-create-new#post-65909</link>
			<pubDate>Thu, 12 Jul 2012 06:01:42 +0000</pubDate>
			<dc:creator>Miramedia</dc:creator>
			<guid isPermaLink="false">65909@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here is a snippet that doesn't work:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action( &#38;#39;admin_init&#38;#39;, &#38;#39;do_cap_stuff&#38;#39; );
function do_cap_stuff(){
  global $user_ID;
  if( !is_super_admin() ) :
    $user = new WP_User( $user_ID );
    $user-&#38;gt;add_cap( &#38;#39;gravityforms_create_form&#38;#39;, false );
  endif;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>David Peralty on "Multisite - Auto load form, but not create new"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/multisite-auto-load-form-but-not-create-new#post-65034</link>
			<pubDate>Fri, 06 Jul 2012 11:35:12 +0000</pubDate>
			<dc:creator>David Peralty</dc:creator>
			<guid isPermaLink="false">65034@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Here are the details regarding editing caps.&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/add_cap&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/add_cap&#60;/a&#62;
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
