Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author ovann86

    (@ovann86)

    Do you mean the ‘remove row’ button? (the – at the far right of the row)

    If so, you’ll need to ask the Gravity Forms support people.

    Thread Starter cars.wahab

    (@carswahab)

    is it possible to hide it on CSS on specific user only? i just recently expired my license in gform ??

    Plugin Author ovann86

    (@ovann86)

    If you’re going to use Gravity Forms on a internet facing website you really should keep the license active so you can keep it updated. A plugin like GF is a popular target when security issues are found in older versions.

    With the hiding the button – this question isn’t relevant to this plugin and even if it were I wouldn’t be obliged answer. This “free support” I provide to maintain this plugin (that I also give away for free) costs me time.

    That being said, I will explain here once how I would do this but I won’t be able to go into any more detail. It will also only work if your theme has been developed correctly.

    You need to run this PHP filter

    add_filter( 'body_class', 'my_body_class' );
    
    function my_body_class( $classes ) {
    	$id = get_current_user_id();
    	$classes[] = 'user-id-'.$id;
    	return $classes;
    }

    And add this CSS, replacing the # with the user ID

    body.user-id-# .delete_list_item {
        display: none !important;
    }
    • This reply was modified 7 years, 10 months ago by ovann86.
    Thread Starter cars.wahab

    (@carswahab)

    ovaaaannnnnn, thank you :))))))))

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘disable delete for certain user’ is closed to new replies.