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 |
2
votes
Make post password required to publish
>" />
<input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><? … php _e('Password protected'); ?></label><br />
<span id="password-span" style="display:block"><label for="post_password"><?php _e('Password:'); ? …
9
votes
Customizing lost password email
You want the filters...
retrieve_password_message for the actual email content. Your hooked function will get the message as the first argument and the user's reset key as the second.
<?php
add_filt …
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 …
3
votes
Basic password protection without using users and roles
php
/**
* Post password form template.
*
* @package WordPress
*/
get_header('password'); ?>
<div id="primary">
<div id="content" role="main">
<? … php get_footer('password'); ?>
As you can see, no hint of the content, just the password form. After the user enters the post password, they'll see the normal page. …
6
votes
Accepted
IF user is logged in only show certain page
Big Question.
So, first, to keep the galleries separate, it would be good to give them their own custom post type. We'll be checking for this later...
<?php
add_action( 'init', 'wpse32840_register_ …