Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
1
vote
Accepted
How to stop WordPress emailing a password
It looks like you're calling wp_new_user_notification() explicitly in your code snippet.
Here are two ideas, how you could get around this problem:
Idea 1:
The wp_new_user_notification() function i …
0
votes
Changing username after registration to get around the issue of having duplicate emails?
You can try this skeleton plugin:
/**
* Plugin Name: Allow duplicate emails on registration
* Plugin URI: http://wordpress.stackexchange.com/a/125129/26350
*/
add_action( 'plugins_loaded', arra …
2
votes
How can I be certain that a user has verified their email after registration?
I had a look into the wp_usermeta table and noticed the default_password_nag meta key.
I checked and this was introduced in #9710 about 7 years ago.
If the user has an auto generated password then …
0
votes
Accepted
wp_insert_user if user exists
When updating a user with:
$user_id = wp_update_user( $userdata );
you need to have the user ID set within $userdata.
Also make sure to validate the $user_id output of wp_update_user() as it can b …
4
votes
Accepted
Customize the "Registration complete. Please check your e-mail." message on WP 4.0
If you need an alternative way, you can always hook into the login_init and modify the gettext filter:
add_filter( 'login_init',
function()
{
add_filter( 'gettext', 'wpse_161709', 99, 3 …
1
vote
call wp_insert_user in custom class doesnt work
In addition to the debugging advice from @s_ha_dum, you could try to catch the possible WP_Error thrown by wp_insert_user():
$user_id = wp_insert_user($params);
if ( is_wp_error( $user_id ) )
{
e …
2
votes
Accepted
Can't add user to blog on registration (Multisite)
Regarding the update part in your question:
I think the problem here is that you're missing the number of accepted arguments in your add_action() setup.
If you check out the Codex, the usage is:
ad …
2
votes
Accepted
How to set custom avatar for users?
We can use the get_avatar_url filter to modify the avatar's url.
If all the relevant get_avatar() calls, have user id as an input argument, then it's easy to get the corresponding user's meta value, …
9
votes
turn off new user registration emails
Approach for WordPress 4.6+
Check out the patch in ticket #36009 that was merged into WordPress version 4.6.
It adds the 'user' option for the $notify input parameter of wp_new_user_notification(), …
11
votes
Accepted
How to change "You must be logged in to post a comment."
You can try to modify it with the comment_form_defaults filter:
/**
* Modify the "must_log_in" string of the comment form.
*
* @see http://wordpress.stackexchange.com/a/170492/26350
*/
add_filter …
2
votes
Accepted
How to customise wp-login.php only for users who are setting a password for the first time?
You can add an extra help message box, on the reset password screen:
with the following:
/**
* Display an extra help message box on the 'reset password' screen
*
* @link http://wordpress.s …
0
votes
Wrong activation/confirmation link in email
It seems to use (src):
$message .= network_site_url( "wp-login.php?action=rp&key=$key&login=" .
rawurlencode( $user_login ), 'login' ) . '&wp_lang=' . $locale . "\r\n\r\n";
but not wp_lo …