/** * Get value from the database. * * @return float|int */ public function get_value() { return $this->format_value(parent::get_value(), $this->get_slug(), papi_get_post_id()); }
/** * Get value from the database. * * @return string */ public function get_value() { $value = $this->format_value(parent::get_value(), $this->get_slug(), papi_get_post_id()); return $this->get_setting('allow_html') ? $value : esc_html($value); }