Skip to content

Instantly share code, notes, and snippets.

@mahdiyazdani
Created November 1, 2020 17:09
Show Gist options
  • Save mahdiyazdani/0c151944fac84dbebb6b5c4e9ec0db87 to your computer and use it in GitHub Desktop.
Save mahdiyazdani/0c151944fac84dbebb6b5c4e9ec0db87 to your computer and use it in GitHub Desktop.
WPML language configuration file
<wpml-config>
<custom-fields>
<custom-field action="copy">quantity</custom-field>
<custom-field action="translate">custom-title</custom-field>
</custom-fields>
<custom-types>
<custom-type translate="1">book</custom-type>
<custom-type translate="1">DVD</custom-type>
</custom-types>
<taxonomies>
<taxonomy translate="1">genre</taxonomy>
</taxonomies>
<admin-texts>
<key name="my_plugins_options">
<key name="option_name_1" />
<key name="option_name_2" />
<key name="options_group_1">
<key name="sub_option_name_11" />
<key name="sub_option_name_12" />
</key>
</key>
<key name="simple_string_option" />
</admin-texts>
</wpml-config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment