Questo plugin non è stato testato con le ultime 3 versioni principali (major releases) di WordPress. Potrebbe non essere più mantenuto, o supportato, e potrebbe presentare problemi di compatibilità se utilizzato con versioni più recenti di WordPress.

Hide/Show Post/Page Content

Descrizione

It permits to hide or show part of the content of posts or pages to users that are logged or not.
It’s also possibile to select the role(s) or the username(s) of logged users.

The content to be hidden or displayed must be included in a shortcode tagged as ‘soshsc‘.

La pagina informativa è disponibile nel menu Strumenti.

È compatibile con Elementor dalla versione 2.0.
Il widget si trova nella categoria generale.

Shortcode parameters

hide=”guest”
hides content to guests

hide=”logged”
hides content to legged users

show=”guest”
displays content to guests

show=”logged”
displays content to legged users

role=”subscriber”
enables the action (show/hide) only to users with the ‘Subscriber’ role

role=”subscriber,editor”
enables the action (show/hide) only to users with the ‘Subscriber’ or ‘Editor’ role

user=”foo”
enables the action (show/hide) only to the user with username ‘foo’

user=”foo,bar”
enables the action (show/hide) only to the users with username ‘foo’ or ‘bar’

Esempi:

  1. Nasconde il contenuto agli utenti non connessi:
    [soshsc hide=”guest”]Questo contenuto è nascosto solo agli utenti non connessi.[/soshsc]

  2. Nasconde il contenuto agli utenti connessi:
    [soshsc hide=”logged”]Questo contenuto è nascosto solo agli utenti connessi.[/soshsc]

  3. Mostra il contenuto solo agli utenti non connessi:
    [soshsc show=”guest”]Questo contenuto è mostrato solo agli utenti non connessi.[/soshsc]

  4. Show content only to logged users:
    [soshsc show=”logged” role=”administrator”]This content is displayed only to administrators.[/soshsc]

Screenshot

  • La pagina informativa (menu Strumenti)
  • Il widget di Elementor (categoria generale)

Recensioni

22 Febbraio 2023
I have been looking for a plugin with similar functionality for a long time. Very happy that I found it. That's what I need!
14 Settembre 2020 1 risposta
No instructions. Инструкцию надо добавлять
27 Luglio 2020
Perfect when you don't need a complicated membership plugin, but in the same time, you want to display different content for logged-in users. Good job!
Leggi tutte le recensioni di 5

Contributi e sviluppo

“Hide/Show Post/Page Content” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

“Hide/Show Post/Page Content” è stato tradotto in 1 lingua. Grazie ai traduttori per i loro contributi.

Traduci “Hide/Show Post/Page Content” nella tua lingua.

Ti interessa lo sviluppo?

Esplora il codice segui il repository SVN, segui il log delle modifiche tramite RSS.

Changelog (registro delle modifiche)

1.5.3

  • Added a workaround to load the core file ‘pluggable.php’ before using the cache_users() function [WordPress 6.1 bug]

1.5.2

  • Updated the internal php library

1.5.1

  • Fixed a PHP notice in the info page
  • Updated the internal php library

1.5

  • Added the do_shortcode() function to allow nested shortcodes
  • Minor fixes and changes

1.4

  • Added shortcode parameters to select logged users by role or username
  • Minor changes

1.2

  • Configurate le impostazioni per la localizzazione
  • Aggiunta la traduzione italiana

1.1

Implementata la compatibilità con Elementor 2.x

1.0

Primo rilascio