Skip to main content

All Questions

Tagged with
0 votes
1 answer
25 views

Redirecting after login except for a specific page

I needed to redirect users after login and this was not a problem using an add_filter on functions.php, done, it works as expected. But now I need to avoid this redirect when the user login from a ...
zatarra's user avatar
0 votes
1 answer
45 views

Simple way to make most of my site private

I need to make a site I am developing be mostly private, accessible by standard Wordpress login. Most plugins are way overkill for what I need, I don't need user roles, tiers, monetization etc. I just ...
semidivine's user avatar
0 votes
1 answer
97 views

wp_login_form display no styled form

I've created a custom template for a custom theme, I need to show the vue app that will manage the front end only to logged users. I've used this code inside my functions.php file and it's supposed ...
OHICT's user avatar
  • 133
1 vote
2 answers
966 views

WordPress login set cookie that survive browser exit (wp_signon function)

I've read all the relevant question here on StackExchange and I haven't found a solution. Here's the problem: I use a plugin to use Google OAUTH to login in Wordpress. All working correctly, but I can'...
Manuel Serrenti's user avatar
0 votes
0 answers
34 views

This code is supposed to only allow user to be authenticated if accountVerified is equal to 1, but it still allows user to be authenticated otherwise

global $user_id; global $wpdb; if(is_user_logged_in()){ header("Location:https://www.recovermenow.co.uk"); } if(!$user_id){ if($_POST){ $...
Sheran Malik's user avatar
0 votes
1 answer
305 views

Prevent wp_signon redirect on failed login for ajax login

I have a custom sign up process with an ajax login if the user needs to log in (stays on the same page). I have this code in functions.php and call it with Ajax. If credentials are correct, everything ...
strattonn's user avatar
  • 169
0 votes
1 answer
438 views

How to redirect Subscribers on login to specific page, when logging in from a Page

I would like to redirect my Subscribers to our Member Resources page when they login, but only when they are logging in from a Page ( is_page() ). When they log in from one of our custom post types I ...
megseoh's user avatar
  • 31
0 votes
1 answer
53 views

Can't log in to WordPress wp-admin after adding code to functions.php

I am adding the following code to the end of my functions.php file to populate a taxonomy based on a Custom post's post-title. The problem is that when I add the code I get the following error trying ...
Alex P's user avatar
  • 1
0 votes
0 answers
216 views

How to replace ACTION url from original wordpress login form?

I need to replace the action of original wp-login login form: Instead of <form name="loginform" id="loginform" action="<?php echo esc_url( site_url( 'wp-login.php', '...
Gustavo Matera's user avatar
1 vote
0 answers
20 views

How can I get my Script to work on the Login page?

I am trying to disable the right click feature, on the login page, using the following code: <?php function disable_right_click() { ?> <script> jQuery(document).ready(function(){ ...
Craig's user avatar
  • 358
0 votes
1 answer
449 views

Having trouble creating two shortcodes, one for logged in user and one for visitors

So I'm trying to create a code (in functions.php) that displays a widget content, from shortcode, based on whether the user is logged in or logged out (visitor). I am successful in displaying content ...
023023's user avatar
  • 135
0 votes
1 answer
487 views

Secondary Menu and Logged In Users

I'm using the below code to display two different menus in my storefront based child theme based on a users logged in status. But When I have a secondary menu (links by the search bar) it is replaced ...
T. Thomas's user avatar
0 votes
0 answers
71 views

Unable to login after registration

I use wp_insert_user to register new users from the frontend. But when I use wp_signon to log them in later, it fails. It says the username or password is wrong. But they are not (password: pass). ...
iDev's user avatar
  • 3
0 votes
2 answers
785 views

Restrict wordpress access to logged users only

I want to limit the access to a wordpress app only to registered users. I've putted this inside the function file, but I'm able to see the home also if I'm not logged in. How I fix this? if( is_home(...
sialfa's user avatar
  • 319
0 votes
0 answers
231 views

Menu not updating for logged in users after redirect

I'm having a problem with my menu not being updated for logged in users. My website has a homepage which I want to change depending if you're logged in or not. I've done this by adding the following ...
ErkerDeBerker's user avatar

15 30 50 per page
1
2 3 4 5