Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #317701

    Hi there,
    I have password protected this page: http://www.cdc.org.nz/media-library/ & I’d like to display a message on it (but not for any other password protected pages).
    For example: “If you have misplaced your password or have not previously registered please do so here: http://www.cdc.org.nz/media-library-registration/”
    I know this is probably not theme specific, but any pointers would be great.
    Thank you :)
    Jas

    #318376

    Hi Jason!

    I believe you can use the the_password_form filter to control the output of the password protected form, something like:

    function custom_func($output) {
            $modified_output = "Message";
            $modified_output .= $output;
    	return $modified_output;
    }
    add_filter('the_password_form', 'custom_func', 10, 1);
    

    Regards,
    Josue

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.