MortgageRates_Embedded::embedded_text( $widget_id )
Callback function of embeded text.
Return Return
(string) text embedded
Source Source
File: mortgage-rates-widget/inc/MortgageRates_Embedded.php
public function embedded_text($widget_id)
{
$option = isset($_GET['option']) ? sanitize_text_field($_GET['option']) : 'text';
$type = 'rates_'. $option;
if (MortgageRatesWidget::$is_active_mortgage_platform) {
$website = new MortgageRates_Websites();
$this->set_website($type, $widget_id);
if ($website->check_uri($type, $widget_id)) {
return $this->plain_text_html($option);
} else {
return $this->block_embed_message();
}
} else {
return $this->plain_text_html($option);
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |