alex20231
Forum Replies Created
-
thanks @missveronicatv , been busy debugging
Maybe this will not work as the cookie does not get set due to redirect?
I have this code also
add_action( ‘template_redirect’, ‘my_redirect_if_user_not_logged_in’ );
function my_redirect_if_user_not_logged_in() {
if ( !is_user_logged_in() && is_page(‘3434’) ) {
wp_redirect( ‘http://www.mysite.com/register ‘);
exit;
}
}
- This reply was modified 2 years, 8 months ago by alex20231.
thanks @missveronicatv , I have added that to my functions.php for child theme and does not work. Is there a way to check if this function is being called or maybe its a caching issue?
Forum: Developing with WordPress
In reply to: How do I add data posted to admin-ajax.php into a database?Thanks Alan
Forum: Plugins
In reply to: [Ultra Addons for Contact Form 7] Save each step in a Multi Page FormThanks @mdashikul , do you have a possible release date? I am possibly going to make a workaround if it is not soon
Thank you for the reply, sounds like your suggestion will work. I will give it a go and let you know.