Exemplo n.º 1
0
 function ot_get_option($option_id, $default = '')
 {
     /* get the saved options */
     $options = get_option(ot_options_id());
     /* look for the saved value */
     if (isset($options[$option_id]) && '' != $options[$option_id]) {
         return ot_wpml_filter($options, $option_id);
     }
     return $default;
 }
Exemplo n.º 2
0
 function ot_get_option($option_id, $default = '')
 {
     //temporary hack
     if (!apply_filters('use_option_tree', true) && class_exists('HU_utils')) {
         return HU_utils::$inst->hu_opt($option_id);
     }
     /* get the saved options */
     $options = get_option(ot_options_id());
     /* look for the saved value */
     if (isset($options[$option_id]) && '' != $options[$option_id]) {
         return ot_wpml_filter($options, $option_id);
     }
     return $default;
 }