ACF\Site_Health
Site_Health::update_site_health
Updates the site health information.
Method of the class: Site_Health{}
No Hooks.
Returns
true|false.
Usage
$Site_Health = new Site_Health(); $Site_Health->update_site_health( $data ): bool;
- $data(array)
- An array of site health information to update.
Default:array()
Changelog
| Since 6.3 | Introduced. |
Site_Health::update_site_health() Site Health::update site health code ACF 6.8.8
public function update_site_health( array $data = array() ): bool {
return update_option( $this->option_name, wp_json_encode( $data ), false );
}