/** * Set the value for a specific field inside the container. * * @since 0.1.0 * @param string $key The field key. * @return mixed The value of the field. Returns boolean false if the field has no value. */ public function set_field_value($key = '') { return ev_get_option($key); }
/** * Get a list of color presets. * * A preset has the following form: * array( * 'user' => false, * 'hex' => '#ff0000', * 'label' => 'The color label' * ) * * @since 0.4.0 * @return array */ function ev_get_color_presets() { $key = 'color_presets'; $presets = ev_get_option($key); if (!$presets) { $presets = array(); } $presets = apply_filters('ev_color_presets', $presets); return $presets; }