The 1st code snippet in the download folder redirects your comment authors to a specific page on weekends only.
The 2nd snippet in the download redirects your comment authors to 1 of 2 pages on your site based on whether it’s a weekend or a weekday.
Watch the following video to see how it works.
Demo Video #
The following demo video shows how the comment author is redirected to the page named Weekend when leaving a comment on a Sunday.
If its a weekend, your comment authors are redirected to a page with the slug /weekend
If its a weekday, your comment authors are redirected to a page with the slug /weekday
Swap out the slugs to match whats in your pages permalink.
Here’s both code snippets for registered free members :
Code Installation #
Using a code editor & FTP or cPanel, add 1 of the code snippets from the download folder to the end of your child themes function file.