Skip to main content
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
Results tagged with
Search options not deleted user 74311

Refers to accounts with the ability to login and participate in a WordPress site.

0 votes

Which function is called after update any field of user from any where of the site

the action update_user_meta is done before the value is saved in database you can try this code add_action("update_user_meta", function ($meta_id, $user_id, $meta_key, $_meta_value) { if (curr …
mmm's user avatar
  • 3,795
2 votes
Accepted

wp_login_form() passing user ID into URL on redirect?

you can add the user identifier à the redirection URL with this filter add_filter("login_redirect", function ($redirect_to, $requested_redirect_to, $user) { $redirect_to = add_query_arg([ …
mmm's user avatar
  • 3,795
1 vote

Is there a filter to edit html of user-edit.php

instead of editing the complet content, it's quicker to find the hook to remove e.g. for the "other role" menu, you can use that : add_action("wp_loaded", function () { remove_all_actions("edi …
mmm's user avatar
  • 3,795
1 vote
Accepted

How to check User Role and redirect to specific page according to Role when login in Wordpress?

you can do this redirection with this filter : add_filter("login_redirect", function ($redirect_to, $requested_redirect_to, $user) { if ( is_a($user, "WP_User") && user_can($user, …
mmm's user avatar
  • 3,795
1 vote

Check if someone recently commented in one of my posts

to retrieve the last comment of a post, you can try this code : $comments = get_comments([ "post_id" => $post_id, "number" => 1, ]); if (isset($comments[0])) { $lastComment = $comments …
mmm's user avatar
  • 3,795
0 votes

show user based on user_meta

== $univCode) { $user_args["meta_query"][] = array( 'key' => 'verifier_assign_univ', 'value' => $univCode, 'compare' => 'LIKE' ); } $users = get_users($user_args); …
mmm's user avatar
  • 3,795