Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter doku

    (@doku)

    Anyone?

    Plugin Author Jupitercow

    (@jcow)

    Some examples:

    Allow the public to edit posts
    add_filter('gform_update_post/public_edit', '__return_true');

    Allow all logged in users to edit posts

    add_filter('gform_update_post/public_edit', 'custom_gform_update_post_public_edit');
        function custom_gform_update_post_public_edit()
        {
            return 'loggedin';
        }

    Only allow editors or higher to edit posts

    add_filter('gform_update_post/public_edit', 'custom_gform_update_post_public_edit');
        function custom_gform_update_post_public_edit()
        {
            return 'edit_posts';
        }

    Thread Starter doku

    (@doku)

    Thank you very much. I’m going to check it tomorrow.

    Plugin Author Jupitercow

    (@jcow)

    Hope that helped. Let me know if there are more questions.

    Thread Starter doku

    (@doku)

    Thank you. It works. Perfect!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Edit posts without login?’ is closed to new replies.