public function get_price()
{
if (!isset($this->price)) {
$this->price = get_post_meta($this->ID, '_give_set_price', true);
if ($this->price) {
$this->price = give_sanitize_amount($this->price);
} else {
$this->price = 0;
}
}
/**
* Override the donation form set price.
*
* @since 1.0
*
* @param string $price The donation form price.
* @param string|int $id The form ID.
*/
return apply_filters('give_get_set_price', $this->price, $this->ID);
}