• joelrendall

    (@joelrendall)


    Hi all! I am using this plugin to make a form that allows subscribers to edit specific posts (I’m using it as a way for subscribers to submit photos so they get attached to a post. Then the admin can later go in and add them to the gallery for that page). However, this add-on respects the user capabilities, so I’m unable to allow the users to edit posts successfully. The form does work when logged in as admin.

    I found on a forum that I can use a add_filter to make the plugin not respect capabilities so I can accomplish this. I tried adding the following hook to my functions.php in the theme, but no luck. I’m not totally sure where to add the code since the instructions weren’t clear, but I assumed it would be the functions.php.

    add_filter(‘gform_update_post/public_edit’, ‘__return_true’);

    If anyone can provide me with any direction at all on how to accomplish this, I will be eternally grateful. Desperate with project deadline approaching!! :p

    A big thanks to the author for creating this very useful plugin.

    https://wordpress.org/plugins/gravity-forms-update-post/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allow subscribers to edit posts’ is closed to new replies.