add_option_checkbox

Description

Adds a checkbox in WPML’s language menu for on/off theme language options.

Arguments

  • [string] $wpml_page – the WPML admin page it applies to (e.g. PLUGIN_FOLDER/menu/languages.php)
  • [string] $option_label – description of the option that will show up on the generated form
  • [string] $option_name – the option name that will be saved to database and be accessible through the settings property
  • [string] $group_name – on each page there can be more groups of options (different forms) that are generated by packages. This will set the group that this option will belong to. (default: ‘Extra options’) – [optional]
  • [string] $default_value – default value of the option (e.g. ‘checked’)- [optional]
  • [array] $extra_attributes – extra attributes for the <input> tag (e.g. array(‘class’=>’some_fancy_class’))- [optional]

Leave a Reply

Please leave here comments about this page only.
For technical support and feature suggestions, head to our forum. We are waiting there!

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">