Post Navigation Elementor
Post Navigation Elementor
Post Navigation Elementor
If a plugin doesn’t provide hooks to modify its functionality the best way forward would be to fork your own version of it. You’d then be responsible for incorporating any upstream updates into your fork.
Because it’s a pluggable function, and surrounded by an if statement, you can define your own function by making the logic of the if statement evaluate to falsy. In this case, to change the if statement logic to falsy, you need only to define your own wp_parse_auth_cookie() function before the pluggable.php file is loaded. I … Read more
How to remove without touching the pluggable.php the wordpress_logged_in cookie to show the username on login?
I think you’re looking for the wp_new_user_notification_email() filter like here.
I found the problem, the login procedure pre-loads the USER object in cache. The password that is checked is always the initial one: changing the password in the database only works from the next login attempt. I fixed it by adding clean_user_cache($userId) But I don’t understand why if I try to login from the “my … Read more
is_tax not working for custom taxonomy
At first I will notice that logging in with the username only sounds like a insecure solution . You should not display the form in the init action hook. Add form display function to the action hook from checkout page (e.g. woocommerce_before_checkout_form) or overwrite the checkout template in the active theme and insert the form … Read more
Change it so they all use the same db but different prefixes (if you’re not alreasy using that). Then adjust the wp-config.php to use the same user tables for all installs: http://codex.wordpress.org/Editing_wp-config.php#Custom_User_and_Usermeta_Tables Don’t forget to make sure the safety hashes of all installs are the same. And perhaps it is useful to set the cookie … Read more
Nevermind, I found the solution. I included pluggable.php in the plugin which is a no-no to start with. And then I used wp_get_current_user() incorrectly.