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 answers only not deleted user 6035
1 vote

Creating a Closed Wordpress Community Using Referral Codes

So, first up, we need some sort of submit form. Here's a simple one, it can be whatever you want, obviously. This is just for this example. Emails the person on submission and sets up a password ke …
chrisguitarguy's user avatar
7 votes
Accepted

Use the user_activation_key for other purposes

Do you think this will be safe? Maybe. Two issues. You also need to make sure the key isn't guessable. No incrementing numbers. You can use something like wp_generate_password to get some psuedo …
chrisguitarguy's user avatar
3 votes

Restrict Access to wp-login.php

The action wp_login_failed fires when there's a failed login due to a faulty username/password combination. So that's a good place to start. This is a super simple example that just redirects to the …
chrisguitarguy's user avatar
5 votes
Accepted

How to redirect action=register link on the lostpassword page to a different link?

Hook into login_form_register and throw people to your registration page with wp_redirect. <?php add_action( 'login_form_register', 'wpse45134_catch_register' ); /** * Redirects visitors to `wp-logi …
chrisguitarguy's user avatar
2 votes

Keep Logged in Users out of Admin Panel

You can remove the read capability from subscribers, which is what gives them access to the dashboard. This is best done with an activation hook on a plugin -- it only needs to be done once. <?php r …
chrisguitarguy's user avatar
2 votes

Average Account Age

WordPress records when a user was registered in the $wpdb->users (usually wp_users) table in the column user_registered. So you can use that to calculate the average account age. There's no internal f …
chrisguitarguy's user avatar