This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Get options for the "Seasons" field with Polylang. | |
* | |
* @return array | |
*/ | |
function um_seasons_options() { | |
$lang = pll_current_language(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Translate choices of the Checkbox field. | |
function my_checkbox_item_title( $title, $key, $v ) { | |
$lang = pll_current_language(); | |
$texts = array( | |
'um_pet' => array( | |
'en' => array( | |
'Cat' => 'Cat', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Translate labels with Polylang or WPML. | |
*/ | |
function um_get_translated_labels() { | |
// EDIT this array of translated labels. | |
return array( | |
"first_name" => array( | |
'en' => 'First Name', |