s2Member links

Old community forum
https://www.s2member.com/forums/forum/community/page/1/index.html
Special replacement codes
https://www.s2member.com/forums/topic/special-replacement-codes/index.html
Use a site page for PayPal auto return
https://www.s2member.com/forums/topic/use-a-site-page-for-paypal-auto-return-page/index.html
https://www.s2member.com/forums/topic/s2-login-widget-redirects-to-wp-login-php/index.html

WP-Sharks forum
How can i hide part of the post?
https://forums.wpsharks.com/t/how-can-i-hide-part-of-the-post/2980

Tutorials
Configuring s2Member Restriction Options
https://s2member.com/kb-article/configuring-s2member-restriction-options/
Configuring custom return URLs upon success
https://s2member.com/kb-article/configuring-custom-return-urls-thank-you-pages-upon-success/
[s2Member-List /] Shortcode Documentation
https://s2member.com/kb-article/s2member-list-shortcode-documentation/

Github s2member-kb
https://github.com/websharks/s2member-kb/blob/master/tutorials/2015/143-creating-a-registration-thank-you-page.md

WordPress development site

I use this script to search and replace the domain name in the WordPress database to adjust a fresh copy from the production site.
Replaces every occurence of ‘www.domainname.tld’ and ‘domainname.tld’ with ‘dev.domainname.tld’.
You then access the development site by adding it to your ‘hosts’ file or internal DNS.


#!/bin/sh
echo File: $1 Replace: $2
cp $1 $1.bak
perl -p -i -e "s|www\.$2|dev\.$2|g" $1
perl -p -i -e "s|://$2|://dev\.$2|g" $1