MP_Websites::update_uri( string $embed, string $widget_id = '' )
Update URI data.
Contents
Parameters Parameters
- $embed
-
(string) (Required) Type of embed widget.
- $widget_id
-
(string) (Optional) Widget ID.
Default value: ''
Return Return
(int|WP_Error) Success or not add new website post type.
Source Source
File: mortgage-platform/Inc/MP_Websites.php
public function update_uri($embed, $widget_id ='')
{
$posts = $this->get_all_posts($widget_id);
if (!empty($posts)) {
$this->_update_uri($posts, $embed, $widget_id);
} else {
return $this->save_uri($embed, $widget_id);
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 1.0.0 | Introduced. |