Forums

Password protected post modifications (4 posts)

  1. adminmgfra
    Member
    Posted 2 years ago #

    I am trying to figure out how to change the text inserted in a password protected post from "This post is password protected. To view it please enter the password bellow" to anything I want. I know there have been postings on this before, but cant find one for the latest version of wordpress (2.8.4) and the previous postings dont seem to solve it on the latest version. I am using a modified neoclassical template. site is http://www.mgfra.org

    Thanks,
    Peter

  2. Michael Fields
    Member
    Posted 2 years ago #

    Just answered a similar question here:
    http://wordpress.org/support/topic/323715?replies=2

  3. adminmgfra
    Member
    Posted 2 years ago #

    Thanks for the help on that. I was able to change the text, but is there a way to change the bold print stating "Protected: page title" ?

    Thanks again,
    Peter

  4. Michael Fields
    Member
    Posted 2 years ago #

    This should work if your language is English:

    add_filter( 'protected_title_format', 'proctected_post_title_override' );
    function proctected_post_title_override( $c ) {
    	return str_replace( 'Protected: ', '', $c );
    }

Topic Closed

This topic has been closed to new replies.

About this Topic