Example #1
0
/**
 * Sanitize divider position choices
 * @param string
 * @return string|bool
 */
function et_sanitize_divider_position($choosen)
{
    return et_sanitize_key_based_option($choosen, et_extra_divider_position_choices());
}
Example #2
0
/**
 * Sanitize dark/light color
 * @param string
 * @return string|bool
 */
function et_divi_legacy_sanitize_dark_light_colors($choosen)
{
    return et_sanitize_key_based_option($choosen, et_divi_legacy_get_dark_light_color());
}
/**
 * Sanitize color scheme
 * @param string
 * @return string|bool
 */
function et_sanitize_color_scheme($choosen)
{
    return et_sanitize_key_based_option($choosen, et_theme_color_scheme_choices());
}