No no, I shall not be updating frequently. I have this HTML site, hasn't been really updated in oh 8 years. Works just as well as it did on day 1. And my wordpress sites, yeah I had a small hack a few months ago, but those sites also ran for like 5+ years with no updates, and never had any problems.
Pro: 5 years of peace of mind
Con: 1 small hack
Yeah, seems like a great deal to me
And even a massive hack, who gives a shit, I'll remove the entire site and reupload a backup, and take it from there.
I just can't live my life with the constant wordpress updates. I need my site to work. I need it to work every day. I need it to work all the time. Every day. No matter happens. War in Ukraine, price of tea in China, me in a coma, I need it to work. Updates simply do not allow for such peace of mind.
---
Okay, I got it working finally!
PHP:
function simple_redirect() {
if ( !is_user_logged_in() && is_page( 'add-funds' ) ) {
wp_redirect('https://digesale.com/sign-in', 302);
exit();
}
}
add_action( 'template_redirect', 'simple_redirect' );
PHP:
function simple_redirect() {
if ( !is_user_logged_in() && is_page( '2862' ) ) {
wp_redirect('https://digesale.com/sign-in', 302);
exit();
}
}
add_action( 'template_redirect', 'simple_redirect' );
Both of these work. They just needed the quotes and the spaces. Go figure
I got the idea here (scroll down, see how they did it - quotes+spaces) -
https://developer.wordpress.org/reference/functions/is_page/
These do NOT work:
PHP:
function simple_redirect() {
if ( !is_user_logged_in() && is_single( '2862' ) ) {
wp_redirect('https://digesale.com/sign-in', 302);
exit();
}
}
add_action( 'template_redirect', 'simple_redirect' );
PHP:
function simple_redirect() {
if ( !is_user_logged_in() && is_single( 'add-funds' ) ) {
wp_redirect('https://digesale.com/sign-in', 302);
exit();
}
}
add_action( 'template_redirect', 'simple_redirect' );
So I think we're good bro. I think we won this one