Abbreviation as the value
-
I seen this question over and over without any answer, how can we have the custom list send the email of the abbreviation instead of the entire text.
For the example on this support
/** * Add a list of languages to Listo */ // Filter to enqueu the language list if ( interface_exists( 'Listo' ) ) { add_filter( 'listo_list_types', function( $list_types ) { $list_types = array( 'languages' => 'Listo_Languages', ); return $list_types; }, 10, 1 ); // Class to handle the language list class Listo_Languages implements Listo { private function __construct() {} public static function items() { return array( 'en' => _x( 'English', 'language', 'listo' ), 'es' => _x( 'Spanish', 'language', 'listo' ), 'it' => _x( 'Italian', 'language', 'listo' ), 'fr' => _x( 'French', 'language', 'listo' ), 'nl' => _x( 'Dutch', 'language', 'listo' ), 'de' => _x( 'German', 'language', 'listo' ), ); } public static function groups() { return array(); } } }
If on the select list some one select Italian how can we set it to send the ‘it’ instead of the full word?
It is right now as
<option value="Italian">Italian</option>
I can name a tone of reason why we need to have the option that it comes out as:
<option value="it">Italian</option>
If there is no way please let us know and add it as a featured request to the plugin
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Abbreviation as the value’ is closed to new replies.