not really, but can try something like:
add_action('wp', 'check_post_pass');
function check_post_pass(){
if(!is_single() || !post_password_required()) return;
global $post;
if(isset($_COOKIE['wp-postpass_'.COOKIEHASH])
&& $_COOKIE['wp-postpass_'.COOKIEHASH] !== $post->post_password){
define('INVALID_POST_PASS', true);
// tell the browser to remove the cookie so the message doesn't show up every time
setcookie('wp-postpass_'.COOKIEHASH, NULL, -1, COOKIEPATH);
}
}
in your template:
if(defined('INVALID_POST_PASS')) _e('The password you entered is funky');
But a much better idea would be to create your own the_content()
-like function and password form + check function, without cookies…
Related Posts:
- multi page password protection
- Password protect page with multiple passwords
- Set Session Time Limit for Password Protected Posts
- Automatically change page password
- WordPress protected Pages
- Password Protected Page Not Displaying Content After Entering Password
- Password Protected Page Title
- More Fields Required For Password protect page
- IF user is logged in only show certain page
- Password Protect Pages Not Working
- When I enter password, I’m redirected to the WordPress login form
- Requiring a Visitor to Enter a Password Each Time They visit a Page
- My Password Protected Pages Aren’t Working
- Get the content of a specific page (by ID)
- How to give paged links custom title?
- featured image as background image on pages
- Show Default Editor on Blog Page ( Administration Panel )
- Create pages automatically if they don’t exist
- Can I display submenus in groups, using wp_list_pages?
- Can I display the widget admin in the page admin?
- Internal Links to Pages in PHP?
- How to display list of child pages of parent page in wordpress?
- Hide page visual editor if template is selected – redux
- Page template gives ‘Parse error: syntax error’ when used, but no error found!
- more tag in the $post->content when get_pages were used
- Different “Text Widgets” in Sidebar on Many Different Pages?
- CMS: Making complex pages editable by the end user
- Guidelines for adding static pages
- Sitewide page on all the blogs in the network
- How to create a page when a theme is activated?
- How to echo excerpts with wp_list_pages?
- Remove pages from backend list *and* update counter accordingly
- How do i fix? WordPress database error: You have an error in your SQL syntax;
- Creating a form contact page?
- Making a wordpress page the index on the site?
- How to call wp_list_comments() outside of the comments template?
- Using Pages to handle calls for custom post types
- Displaying Subpages while on Parent page?
- Guest authors, sort of like Wikipedia, but more theme-able
- Show own shortcode data on each page
- Pages views limit [closed]
- Having wordpress page accesss issue under sub-directory
- How to make my category archive behave like a page
- Add external css to Contact Page
- Role can edit just one page [closed]
- how to edit source code of specific page in wordpress?
- Where can i make an html change to a specific page [closed]
- Cannot enter “::before” for li tag when editing a WordPress page
- How to get page_id for url rewrite or how to use page slug for calling a page?
- WordPress backend:How to hide some specific pages under Pages–>All Pages
- Different header for each page in child theme of twenty thirteen
- Change a Page’s Header Image
- Dynamic href link to Contact Page
- Restrict the list of parent pages to only those which are created by current user
- Use content from one page in another template
- Is there a way to schedule changes to a page?
- Is it possible to change slugs’ default behaviour?
- List child pages within page template
- Option for pages order in backend
- Return subpages of an author if the parent page was published by an other author
- append one page content into another
- Allow a user to edit their own page and profile only
- on page creation few inline style properties gets removed
- way to make all pages with certain tags public?
- Page not appearing under its Parent
- Separate URL for a specific page
- Pages that don’t look like blog posts?
- Next and Previous Page links based on ‘Order’ attribute
- register_rest_field only for specific page
- Update Pages ONLY from Stage to Live (not products)
- Change page width in refined magazine/mag and news theme
- How do you run code on a specific page without missing the init hook?
- Every change made by “Author” role is going to “pending review”
- Groping Pages Per Department Option
- if is_page() is not working with wp_redirect
- Display meta data attribute in user profile
- WordPress default theme cannot get full page on entry content div
- Assign Parent Page – Now 404 Error
- Create multiple custom HTML pages
- WordPress displays widgets out of whack
- Add homepage to the list of pages in the Footer Widget
- How to remove the duplicate title tags and duplicate meta descriptions?
- Customise the_title in admin area
- Add pagination to search.php page
- How to turn post into pages and via versa?
- How do I get my page “About” to show up on my WordPress site?
- Featured Image not displaying in a page
- Pulling posts tagged with similar title name
- Filter posts by author selected in page
- Temporary download page or restrict static download page based on how the user got to the page?
- search page different results
- List Parent page with sub pages
- simple category search form returns full text – but I need excerpts
- Naming custom page templates
- How can I use Page editor for two separate templates?
- Sort the data in WordPress using get-page-by-title
- Adding a filter to wp_edit_posts_query() to prevent hierarchical display of pages
- Order pages by date
- wordpress user profile page
- In WP, Google map error initMap is not a function [closed]