Title: LH Private Content Login
Author: shawfactor
Published: <strong>23 de enero de 2017</strong>
Last modified: 28 de febrero de 2024

---

Buscar plugins

![](https://ps.w.org/lh-private-content-login/assets/banner-772x250.jpg?rev=1580748)

Este plugin **no se ha probado con las últimas 3 versiones mayores de WordPress**.
Puede que ya no tenga soporte ni lo mantenga nadie, o puede que tenga problemas 
de compatibilidad cuando se usa con las versiones más recientes de WordPress.

![](https://ps.w.org/lh-private-content-login/assets/icon-256x256.png?rev=2763879)

# LH Private Content Login

 Por [shawfactor](https://profiles.wordpress.org/shawfactor/)

[Descargar](https://downloads.wordpress.org/plugin/lh-private-content-login.zip)

 * [Detalles](https://es.wordpress.org/plugins/lh-private-content-login/#description)
 * [Valoraciones](https://es.wordpress.org/plugins/lh-private-content-login/#reviews)
 *  [Instalación](https://es.wordpress.org/plugins/lh-private-content-login/#installation)
 * [Desarrollo](https://es.wordpress.org/plugins/lh-private-content-login/#developers)

 [Soporte](https://wordpress.org/support/plugin/lh-private-content-login/)

## Descripción

Do you post private content? Are you sending those links to your users with private
content access?

WordPress natively send non-logged in users to a 404 (content not found) page when
they try to access a post, page, or cpt without rights. This plugin redirects those
users to the login page. After successful login the user is then redirected back
to the post, page, or cpt they were trying to access.

**Like this plugin? Please consider [leaving a 5-star review](https://wordpress.org/support/view/plugin-reviews/lh-private-content-login/).**

**Love this plugin or want to help the LocalHero Project? Please consider [making a donation](https://lhero.org/portfolio/lh-private-content-login/).**

## Instalación

 1. Upload the entire `lh-private-content-login` folder to the `/wp-content/plugins/`
    directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## FAQ

### What is something does not work?

LH Private Content Login, and all [https://lhero.org](https://es.wordpress.org/plugins/lh-private-content-login/LocalHero?output_format=md)
plugins are made to WordPress standards. Therefore they should work with all well
coded plugins and themes. However not all plugins and themes are well coded (and
this includes many popular ones).

If something does not work properly, firstly deactivate ALL other plugins and switch
to one of the themes that come with core, e.g. twentyfifteen, twentysixteen etc.

If the problem persists pleasse leave a post in the support forum: [https://wordpress.org/support/plugin/lh-private-content-login/](https://wordpress.org/support/plugin/lh-log-queries/).
I look there regularly and resolve most queries.

### What if I need an enhancement or feature that is not in the plugin?

Please contact me for custom work and enhancements here: [https://shawfactor.com/contact/](https://shawfactor.com/contact/)

### How do I change the text explaing the need to login?

Currently if a visitor tries to access content that is private the visitor is redirected
to the login page and the message: «This content is private you will need to login
and have appropriate access.» is displayed. This string itself is fully translatable
but translations files are not icluded in the plugin itself. You can translate or
modify the entire message (including the html) directly using the «lh_private_content_login_display_login_message»
filter.

## Reseñas

![](https://secure.gravatar.com/avatar/35229879cd7f7ef9fb67479e02189b1874ac0f4110b52090a6998129f5566902?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-10881/)󠁿

 [321abc](https://profiles.wordpress.org/deraxia/) 26 de junio de 2021

Best private page to login redirect.

![](https://secure.gravatar.com/avatar/df84e3242474e5b89f124177f6d953be20a2cb8dde6d24cd77c5b6f96f035121?
s=60&d=retro&r=g)

### 󠀁[It works!](https://wordpress.org/support/topic/plugin-redirects-too-many-times/)󠁿

 [richardlm57](https://profiles.wordpress.org/richardlm57/) 22 de abril de 2019 
1 respuesta

I gave it a lower rating before, but as its developer mentioned, the real culprit
was another plugin that was crashing with this. My apologies for my previous rating,
and thanks for your suggest.

![](https://secure.gravatar.com/avatar/6b78ac950db907ceb0182298faaf3bbd73079d6c54ac5afa3394fce02e30e091?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-5993/)󠁿

 [valym777](https://profiles.wordpress.org/valym777/) 14 de abril de 2019

THIS is exactly what I was looking for. It works perfectly. Thank you SO much for
your plugin contribution, this is what makes the WordPress community awesome! Note
to others: Once plugin is enabled, simply change any of your preferred posts/pages
visibility to "private" and you're done. Only those that log in will be able to 
view that content.

![](https://secure.gravatar.com/avatar/69c2323aae13f94346b3ee38b9433f5a3a016e256921684fc4252b5005810135?
s=60&d=retro&r=g)

### 󠀁[Works as intended](https://wordpress.org/support/topic/works-as-intended-111/)󠁿

 [ulikoehler](https://profiles.wordpress.org/ulikoehler/) 20 de octubre de 2018

Just install and activate!

![](https://secure.gravatar.com/avatar/cb95d39bb24b031a5a03b42fbee68ffbd98469da9059008dfb4821514f944aca?
s=60&d=retro&r=g)

### 󠀁[Works perfectly!](https://wordpress.org/support/topic/works-perfectly-1074/)󠁿

 [abooster](https://profiles.wordpress.org/abooster/) 11 de febrero de 2017

Works perfectly with WordPress 4.7.2. To make sure users with subscriber role can
actually read your private content follow the instructions here: https://www.lifewire.
com/letting-subscribers-view-private-wordpress-blog-756532 because by default only
Administrators and Editors can see private posts and pages.

 [ Leer todas las 5 reseñas ](https://wordpress.org/support/plugin/lh-private-content-login/reviews/)

## Colaboradores y desarrolladores

«LH Private Content Login» es un software de código abierto. Las siguientes personas
han colaborado con este plugin.

Colaboradores

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

«LH Private Content Login» está traducido en 1 idioma. Gracias a [los traductores](https://translate.wordpress.org/projects/wp-plugins/lh-private-content-login/contributors)
por sus contribuciones.

[Traduce «LH Private Content Login» a tu idioma.](https://translate.wordpress.org/projects/wp-plugins/lh-private-content-login)

### ¿Interesado en el desarrollo?

[Revisa el código](https://plugins.trac.wordpress.org/browser/lh-private-content-login/),
echa un vistazo al [repositorio SVN](https://plugins.svn.wordpress.org/lh-private-content-login/)
o suscríbete al [registro de desarrollo](https://plugins.trac.wordpress.org/log/lh-private-content-login/)
por [RSS](https://plugins.trac.wordpress.org/log/lh-private-content-login/?limit=100&mode=stop_on_copy&format=rss).

## Registro de cambios

**1.00 January 22, 2017**
 * Initial release

**1.01 March 03, 2017**
 * Added preview login functionality

**1.02 July 25, 2017**
 * Added class check

**1.03 March 04, 2018**
 * Singleton pattern implemented

**1.00 September 04, 2020**
 * Moved hooks to plugins loaded added login message

**1.05 January 11, 2024**
 * Better translation support

**1.06 February 25, 2024**
 * Added login message filter and attachment handling

## Meta

 *  Versión **1.05**
 *  Última actualización **hace 3 años**
 *  Instalaciones activas **200+**
 *  Versión de WordPress ** 5.0 o superior **
 *  Probado hasta **6.4.14**
 *  Idiomas
 * [English (US)](https://wordpress.org/plugins/lh-private-content-login/) y [Portuguese (Portugal)](https://pt.wordpress.org/plugins/lh-private-content-login/).
 *  [Traducir a tu idioma](https://translate.wordpress.org/projects/wp-plugins/lh-private-content-login)
 * Etiquetas:
 * [login](https://es.wordpress.org/plugins/tags/login/)[post status](https://es.wordpress.org/plugins/tags/post-status/)
   [private content](https://es.wordpress.org/plugins/tags/private-content/)[redirection](https://es.wordpress.org/plugins/tags/redirection/)
   [status](https://es.wordpress.org/plugins/tags/status/)
 *  [Vista avanzada](https://es.wordpress.org/plugins/lh-private-content-login/advanced/)

## Valoraciones

 5 de 5 estrellas.

 *  [  5 valoraciones de 5 estrellas     ](https://wordpress.org/support/plugin/lh-private-content-login/reviews/?filter=5)
 *  [  0 valoraciones de 4 estrellas     ](https://wordpress.org/support/plugin/lh-private-content-login/reviews/?filter=4)
 *  [  0 valoraciones de 3 estrellas     ](https://wordpress.org/support/plugin/lh-private-content-login/reviews/?filter=3)
 *  [  0 valoraciones de 2 estrellas     ](https://wordpress.org/support/plugin/lh-private-content-login/reviews/?filter=2)
 *  [  0 valoraciones de 1 estrellas     ](https://wordpress.org/support/plugin/lh-private-content-login/reviews/?filter=1)

[Tu valoración](https://wordpress.org/support/plugin/lh-private-content-login/reviews/#new-post)

[Ver todas las reseñas](https://wordpress.org/support/plugin/lh-private-content-login/reviews/)

## Colaboradores

 *   [ shawfactor ](https://profiles.wordpress.org/shawfactor/)

## Soporte

¿Tienes algo que decir? ¿Necesitas ayuda?

 [Ver el foro de soporte](https://wordpress.org/support/plugin/lh-private-content-login/)

## Donar

¿Te gustaría apoyar el progreso de este plugin?

 [ Dona a este plugin ](https://lhero.org/portfolio/lh-private-content-login/)