$store_as, 'type' => $type, 'start_date' => $start_date, 'end_date' => $end_date, 'value' => $value, ); return update_option( 'yst_ga_' . $type, $store ); } /** * Reset an option of the GA dashboards storage engine * * @param string $type * * @return bool */ public static function reset( $type ) { return update_option( 'yst_ga_' . $type, array() ); } }