autoship_get_remote_site_settings (function)
(src/admin.php) Used to get the current site settings from QPilot.
Function
/** * Gets the current sites Settings from QPilot. * @param bool $sitehealth Optional. The current API Health flag. */ function autoship_get_remote_site_settings( $sitehealth = true ){ $site_data = autoship_get_site_order_settings(); if ( !is_wp_error( $site_data ) ){ update_option( '_autoship_site_settings_expiration', time() + apply_filters( 'autoship_site_settings_expiration_duration', 900 ) ); update_option( '_autoship_site_settings', $site_data ); } return $site_data; }