Skip to content

Instantly share code, notes, and snippets.

@RafaelFunchal
Forked from benheu/wysija_get_subscription_link
Last active September 19, 2018 21:18
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save RafaelFunchal/2e3c34f51934bc985830 to your computer and use it in GitHub Desktop.
Save RafaelFunchal/2e3c34f51934bc985830 to your computer and use it in GitHub Desktop.
Shows the link of the profile page for logged in users and let them edit their subscription
Copy link

ghost commented Nov 27, 2014

Can I say that I love you???? <3 😵 This saved my ass... :) Thanks so much. 😄

@ejntaylor
Copy link

Works well - thanks

@myrafletcher
Copy link

Where do I paste this code?

@myrafletcher
Copy link

I figured it out and thank you so much this was a life saver!!

@RafaelFunchal
Copy link
Author

@myrafletcher, you can paste it in your file functions.php.

Sorry about the delayed answer, but Gist doesn't send any notification when someone adds a new comment.

Copy link

ghost commented Jul 5, 2016

Thank you, this is so useful. Don't know why this is not official function in MP? Your code is working great :)

@amigs-ch
Copy link

@RafaelFunchal

Thats what i need, but i did not now where i have to paste this code? On functions.php i got a error!

All the best,
Pascal

@RafaelFunchal
Copy link
Author

@someco, I haven't tested that code with the current version of MailPoet yet, but I think you can reach their support and ask for any customization.

@nigel7119
Copy link

nigel7119 commented Sep 6, 2016

Is there any reason why this would not work in Wordpress 4.6? I have an odd error using s2Member Pro, if I add the link (<a href="<?php echo wysija_get_subscriptions_edit_link(); ?>">Manage your subscription or the text you wish.</a>) to their login widget it works perfectly in 4.53 and I've had no problems but in 4.6 it screws up the page. It works fine if I place it on a page and I can use other php echo links in the widget and they seem to work fine...just this one that doesn't. s2Member Pro are telling the link should never have worked and it's not an error in the widget?

@davidzack
Copy link

Is there a way to get this shortcode to render the actual form, rather than link to a new page with the form?

@RafaelFunchal
Copy link
Author

@nigel7119 , probably because it is an old code which has not been tested with those WordPress versions. But you can always reach out to MailPoet support and ask them for help.

@RafaelFunchal
Copy link
Author

RafaelFunchal commented Mar 9, 2017

@davidzack , no. The purpose of this code is just to display a link, not the form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment