Listo

Descrizione

Listo is a simple plugin that supplies other plugins and themes with commonly used lists.

Usage

$countries = listo(
    // List type
    'countries',
    // Options
    array(
        'group' => 'un',
        'orderby' => 'value',
        'order' => 'DESC',
    )
);

Installazione

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

Recensioni

29 Agosto 2020
LISTO is an excellent little addition to Contact Form 7. Saves lots of time. Only one small snag in the list of countries is that they're sorted in alphabetical order of the 3-letter code for each country, rather than the country's name. Most of the time that makes hardly any difference, except for the United Kingdom, whose three-letter code is GBR, which places the UK between Gabon and Guinea (or somewhere around there) in the drop-down list, making it v diff to find. But this is easily sorted. Just manually move that line by editing the list in the file countries.php in wp-content/plugins/listo/modules/. Problem solved. Great plugin.
11 Maggio 2020
Excellent and useful plugin, unfortunately list countries are not accurately by alphabetical order. Thanks to the community, add this to you function.php and it will work like a charm. function wpcf7_listo_ordered( $data) { sort($data); return $data; } add_filter( 'wpcf7_form_tag_data_option', 'wpcf7_listo_ordered', 11, 1 );
Leggi tutte le recensioni di 12

Contributi e sviluppo

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

Collaboratori

“Listo” è stato tradotto in 11 lingue. Grazie ai traduttori per i loro contributi.

Traduci “Listo” 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.8

  • Updates country names in modules/countries.php.
  • Adds support of the orderby and order options to listo().
  • Adds modules/countries-a2a3.php as the mapping table of ISO 3166-1 Alpha-2 and Alpha-3 codes.
  • Adds modules/telephone-country-codes.php as the list of ITU-T E.164 country calling codes.
  • Requires WordPress 6.4+.

1.7

  • Requires WordPress 6.2+ and PHP 7.4+.