PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

how to disable post/page editor mini button?

  1. how to disable post/page editor mini button?
    i dont want my customers put forms from there.. or.. a solution to just let them put some forms not all...

    Posted 14 years ago on Tuesday January 12, 2010 | Permalink
  2. Right now I don't think there is a way... but you bring up a good point. We can probably add an option in the next release to disable the form button in the page/post editor. Would an option in the Settings to turn if off suffice? Then you can use the Members role management plugin to hide the Settings page from them...

    Posted 14 years ago on Tuesday January 12, 2010 | Permalink
  3. You can try this to get rid of the button. Just put the following snippet into your theme's function.php file. It basically hides the button from view for non admin users.

    <?php if ( !current_user_can('manage_options') ) {  
    
    	function gfAdminCSS() {
    			$gfAdminCSS = '<style type="text/css" media="screen" />a[title="Add Gravity Form"] {display:none;}</style>' . "\n";
    			print($gfAdminCSS);
    	}
    
    	add_filter('admin_head', 'gfAdminCSS');
    } ?>

    We're still considering some options for another release, but this should work for you for the time being.

    Posted 14 years ago on Wednesday January 13, 2010 | Permalink

This topic has been resolved and has been closed to new replies.