Public Post Preview

Descripción

Share a link to anonymous users to preview a draft of a post (or any other public post type) before it is published.

¿Alguna vez has escrito una entrada con la ayuda de alguien que no tenía acceso a tu sitio y has tenido que darle acceso a la vista previa antes de publicar? Este plugin se encarga de eso generando una URL, con un nonce de caducidad, con la que puedes ofrecer una vista previa pública.

Anteriormente, este plugin era mantenido por Matt Martz y fue una idea de Jonathan Dingman. Gracias a Hans Dinkelberg por esta foto.

Utilización

  • Para activar la vista previa pública de una entrada, marca la casilla que está debajo de la caja de edición de la entrada.
  • El enlace será mostrado si la casilla de verificación está marcada. Simplemente, copia y comparte el enlace con tus amigos.
  • Para desactivar la vista previa simplemente desmarca la casilla.

Capturas

  • Edit Posts Page

Instalación

Nota: No habrá una página de ajustes.

Para una instalación automática a través de WordPress:

  1. Ve a «Añadir nuevo» en la pantalla de plugins de tu área de administración de WordPress
  2. Busca «Public Post Preview»
  3. Haz clic en «Instalar ahora» y activa el plugin

Para una instalación manual por FTP:

  1. Sube la carpeta public-post-preview al directorio /wp-content/plugins/
  2. Activa el plugin a través de la pantalla «Plugins» de tu área de administración de WordPress

Para subir el plugin a través de WordPress, en lugar de FTP:

  1. Sube el archivo ZIP descargado en la pantalla de plugins «Añadir nuevo» (mira la pestaña «Subir») en tu área de administración de WordPress y actívalo.

FAQ

No puedo encontrar la opción para los enlaces de la vista previa. ¿Dónde está?

La casilla de verificación solo está disponible para las entradas que no están publicadas y para cuando una entrada se guarda como borrador.

Después de un tiempo, el enlace de vista previa devuelve el mensaje «¡Este enlace ha caducado!». ¿Por qué?

El plugin genera una URL con un nonce de caducidad. Por defecto, un enlace «vive» 48 horas. Después de 48 horas, el enlace caduca y tienes que copiar y compartir un nuevo enlace, que es generado automáticamente en el mismo sitio, debajo del editor.

48 horas no son suficientes para mí. ¿Puedo ampliar el tiempo del nonce?

Sí, por supuesto. Puedes usar el filtro ppp_nonce_life. Ejemplo para 5 días:

add_filter( 'ppp_nonce_life', 'my_nonce_life' );
function my_nonce_life() {
    return 5 * DAY_IN_SECONDS;
}

O usa el plugin Public Post Preview Configurator.

Reseñas

7 de febrero de 2024
Just used for a nice way for a client to approve new WooCommerce products. Easy-peasy.
29 de marzo de 2023
I have been using this plugin for a very long time and like it. but I just don't understand why there is no setting where I can specify the validity period of the link. That would be so easy. Instead, I have to either manually mess around in the code or install a SEPARATE PLUGIN that does this really very simple job. The plugin is really great, but apparently they just stopped at the crucial point. Really a great pity.
20 de noviembre de 2022
This is a great plugin that should be officially incorporated into WordPress.
12 de agosto de 2022
I like the plugin, a lot. But it could be SO MUCH better if you could just extend the 48 hours to let's say, a week or even two. Because let's face it, most of us use this tool for clients so that they can see the work, before approving it. The thing is that they receive the preview mail and aren't able to check the preview in such a short time period. Add weekend and different time zones to that, and it makes this plugin pretty much useless because you keep sending preview links back and forth over and over again. The short timeframe makes the plugin so much worse than it could be. I really don't understand this choice. Yes, there is code that you can manually add. But the whole point of a plugin is to stay away from manual coding. And yes, there is also another plugin that lets you extend the preview time. But that means another plugin to keep up-to-date, more drag on the server and increasing security risks. So please. You can make this plugin 90% better just by increasing the timeframe, or letting the user decide the timeframe.
Leer todas las 72 reseñas

Colaboradores y desarrolladores

«Public Post Preview» es un software de código abierto. Las siguientes personas han colaborado con este plugin.

Colaboradores

«Public Post Preview» está traducido en 24 idiomas. Gracias a los traductores por sus contribuciones.

Traduce «Public Post Preview» a tu idioma.

¿Interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios

2.10.0 (2022-11-19):

  • Compatibility with WordPress 6.1.
  • Integrate with User Switching: Direct the user to the public preview of a post when they switch off from the post editing screen. Props @johnbillion.

2.9.3 (2021-03-12):

  • Compatibility with WordPress 5.7.
  • Create a fresh preview URL when enabling public preview.
  • Add check for possibly undefined PHP «superglobals». Props @waviaei.

For more see CHANGELOG.md.