Title: Optional Content
Author: kylegetson
Published: <strong>15 Marzo 2010</strong>
Last modified: 13 Giugno 2011

---

Ricerca i plugin

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.

![](https://s.w.org/plugins/geopattern-icon/optional-content.svg)

# Optional Content

 Di [kylegetson](https://profiles.wordpress.org/kylegetson/)

[Scarica](https://downloads.wordpress.org/plugin/optional-content.1.1.zip)

 * [Dettagli](https://it.wordpress.org/plugins/optional-content/#description)
 * [Recensioni](https://it.wordpress.org/plugins/optional-content/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/optional-content/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/optional-content/#developers)

 [Supporto](https://wordpress.org/support/plugin/optional-content/)

## Descrizione

This plugin allows you to show or hide content on a page or post based on a simple
shortcode. You don’t need PHP knowledge, or a PHP enabling plugin. Simply use a 
button on the WYSIWYG editor to select under what condition you would like the content
displayed. Fast, simple, and safe. Keep your template files clean by removing your
PHP logic. Now allows shortcodes inside of the conditional content.

Display content based on the following conditions:

 * Manual on/off setting
 * Before, after, or between specific times (repeated daily)
 * Before, after or between specific dates
 * Based on if the visitor is logged in
 * Based on a specific user (by user id) or multiple users (by user id)
 * Based on GET variables (variables passed on the URL in the form of http://www.
   example.com/about/?test=value where the variable is ‘test’)
 * Based on POST variables (variables sent via forms)
 * Based on REQUEST variables (either GET or POST variables)

## Screenshot

 * [[
 * The editor button
 * [[
 * The window to insert the optional content

## Installazione

 1. Upload the folder `optional-content` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use the ‘[if]’ button now on the tinyMCE WYSIWYG editor.

## FAQ

  I don’t see a new button on the editor?

Try clicking the ‘show/hide kitchen sink’ button. This will display additional buttons,
and may reveal the ‘[if]’ button. If not, clear your browser cache and try again.

  Can I do a date AND a time?

Yes, this plugin uses the PHP function strtotime(), so you can do date and time 
like ‘2010-12-31 23:59:59’ in the ‘date’ field for 12:59:59PM on Dec. 31 2010. See
the PHP documentation for strtotime() for more examples of what you can use.

## Recensioni

Non ci sono recensioni per questo plugin.

## Contributi e sviluppo

“Optional Content” è un software open source. Le persone che hanno contribuito allo
sviluppo di questo plugin sono indicate di seguito.

Collaboratori

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

[Traduci “Optional Content” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/optional-content)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/optional-content/)
segui il [repository SVN](https://plugins.svn.wordpress.org/optional-content/), 
segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/optional-content/)
tramite [RSS](https://plugins.trac.wordpress.org/log/optional-content/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1

Fixed issues with selecting a user
 Added the ability for multiple users Now allows
for shortcodes inside shortcodes

#### 1.0.0

 * Plugin functional and tested by a small group of volunteers

## Meta

 *  Versione **1.1**
 *  Ultimo aggiornamento **15 anni fa**
 *  Installazioni attive **40+**
 *  Versione WordPress ** 2.8.0 o superiore **
 *  Testato fino alla versione **3.1.4**
 *  Lingua
 * [English (US)](https://wordpress.org/plugins/optional-content/)
 * Tag
 * [conditional content](https://it.wordpress.org/plugins/tags/conditional-content/)
   [if](https://it.wordpress.org/plugins/tags/if/)[php](https://it.wordpress.org/plugins/tags/php/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/optional-content/advanced/)

## Valutazioni

 5 su 5 stelle.

 *  [  2 recensioni a 5-stelle     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=5)
 *  [  0 recensioni a 4-stelle     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=4)
 *  [  0 recensioni a 3-stelle     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=3)
 *  [  0 recensioni a 2-stelle     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=2)
 *  [  0 recensioni a 1-stelle     ](https://wordpress.org/support/plugin/optional-content/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/optional-content/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/optional-content/reviews/)

## Collaboratori

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

## Supporto

Hai qualcosa da dire? Ti serve aiuto?

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/optional-content/)

## Donazioni

Vuoi sostenere le versioni future?

 [ Fai una donazione per lo sviluppo ](http://getson.info/)