Skip to main content

All Questions

Tagged with
0 votes
1 answer
140 views

index.php file shown when trying to load wesite

I am trying to make a website as a task for my university. I used this tutorial: https://ubuntu.com/tutorials/install-and-configure-wordpress#1-overview the first time I did it it was fine , but I ...
Giannis's user avatar
0 votes
0 answers
11 views

How to modify username before logging in?

I know a solution exists for Wordpress admin from this Stack Exchange question: Change username before login However, while this works for logging into Wordpress directly, I am trying to use it for ...
Harish Prabhakar's user avatar
0 votes
0 answers
80 views

Unable to correctly logout after changed wp-login.php

I've followed a guide on internet that suggested how to change the wp-login.php page to something custom by modifing the wp-login.php file itself and by renaming it. I've copied the wp-login.php ...
OHICT's user avatar
  • 133
0 votes
0 answers
220 views

How to change wp-admin and wp-login urls

I need to have a custom login url for a wordpress website that will use an headless theme to show a registration form. I've tried using the login_url filter but the result isn't really what I was ...
devdev's user avatar
  • 1
0 votes
2 answers
235 views

Is it possible to add the_content filter upon login?

I've added a wp_login action and it's getting executed. Then within that function, I'm adding a filter to the_content so that a script gets inserted upon certain conditions but it's not getting ...
Vic's user avatar
  • 1
1 vote
1 answer
709 views

How to redirect user after login to a specific page?

I have a page with mixed content in three different tabs. The first tab is open access to all but the content of the last two are for logged in users only so by sending the users to login with: <p&...
Seblito's user avatar
  • 29
0 votes
0 answers
78 views

How to redirect a unique link based on login status

I have webstore on woocommerce, and on one of my wordpress pages (that page is not woocommerce page, but just wordpress and it is edited by Colibri free theme) I have download links for some products. ...
pajczur's user avatar
  • 101
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
0 answers
111 views

Discern a specific plugin's action hooks

I'm new to Wordpress plugin development (but not to coding) so please excuse the question. I am trying to develop a plugin to catch user registrations and populate other web application databases ...
stigzler's user avatar
  • 103
0 votes
1 answer
81 views

Use another action instead of the shortcode API to display the last time a user logged in

Here's my problem: if ( !class_exists( 'printSecurity' ) ) { class printSecurity { public $constant_name_prefix = 'PRNSEC_'; public function __construct() { define(...
user3833012's user avatar
0 votes
1 answer
3k views

add_action('init') not work

my code is add_action('init', 'user_logged_in'); function user_logged_in(){ if( is_user_logged_in() && is_page('login')){ wp_redirect(home_url()); exit; } } the page slug ...
Kt H's user avatar
  • 15
1 vote
1 answer
2k views

add filter login_redirect does not contain original requested redirect

I link to WP's login page passing: redirect_to=play ...ttp://www.my.com/wp-login.php/?redirect_to=play">Click here... I use the value (in this case: play) as a flag, not an actual redirect url, ...
MLH's user avatar
  • 13
0 votes
1 answer
919 views

Should `wp_login` be used since it's deprecated?

I am working on a little script that requires the user role right after logging in. I Figured wp_login() would be perfect. I read this runs after the login of a user and contains 2 parameter of which ...
Tristan .L's user avatar
0 votes
1 answer
56 views

Check get_post value after wp-admin login

I want to check get_option value after login to wp-admin. I have save the date in get_option. I want to check if value in get_option is same as current date after wp-admin login. if same then i ...
jack's user avatar
  • 103
0 votes
2 answers
2k views

wp_login_form() ignoring login_form action hook

I have created a custom login page that uses wp_login_form() to create the login form: <div class="login-form"> <?php wp_login_form( array( 'remember' => false, '...
Bran's user avatar
  • 3

15 30 50 per page