• Resolved Herky Fishbine

    (@herky-fishbine)


    Hello,

    Great plugin!

    I have a question. The variable %%edit_link%% is blank in the email alert message. All other variables are showing their values properly, just not the edit link.

    Any suggestions for getting this to display in the email notification?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Normally it works properly, so there must be something (like another plugin or theme) that is interfering with normal functionality. Best advice is to temporarily disable all other plugins and re-test. Alternately you could set up a new WP install, leave everything at defaults (plugins, theme, settings), and try again with only USP.

    Plugin Author Jeff Starr

    (@specialk)

    Hi @herky-fishbine, just wanted to follow up with this. It’s been awhile with no reply, so I hope the issue is resolved? Or if there is anything I can do to help, please let me know. Thank you.

    Thread Starter Herky Fishbine

    (@herky-fishbine)

    Hi Jeff,

    Here is what I found:

    The edit link appears in notification emails if the form was submitted by a logged-in administrator.

    If the form was submitted by a logged-in non-administrator or a logged-out user, the edit link is not shown in the email.

    I hope this helps.

    Plugin Author Jeff Starr

    (@specialk)

    Yeah that makes sense. Because users without sufficient capabilities are allowed to edit posts. So it’s how it should work. Unless I am missing something..?

    Thread Starter Herky Fishbine

    (@herky-fishbine)

    It seems like it should depend on the recipient’s role, not the senders.

    If an admin is receiving the notification, he should be able to see the edit link (convenient to approve posts that are initially submitted as pending), regardless of the submiter’s role.

    Yes?

    Plugin Author Jeff Starr

    (@specialk)

    Yes that makes way more sense. I’ll change it so that the plugin includes the edit link regardless of who submits the post. Even if some alerts are configured to send to non-registered users, the edit links still require a password to access. So great idea, thank you Herky.

    Thread Starter Herky Fishbine

    (@herky-fishbine)

    Cool! Glad to have helped.

    Plugin Author Jeff Starr

    (@specialk)

    Just to follow up with this. In the next version of USP (20200817), the %%edit_link%% shortcode now returns an edit link for all users, whether logged in or not. Thanks again for your feedback, Herky.

    • This reply was modified 4 years ago by Jeff Starr. Reason: adds info
    Thread Starter Herky Fishbine

    (@herky-fishbine)

    Hey, that’s great, Jeff. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘edit_link variable not showing in email’ is closed to new replies.