/** * @author Vova Feldman (@svovaf) * @since 1.0.9 * @uses FS_Api * * @param bool $store * * @return FS_Plugin_Plan|object|false */ private function _enrich_site_trial_plan($store = true) { // Try to load plan from local cache. $trial_plan = $this->_get_plan_by_id($this->_site->trial_plan_id); if (false === $trial_plan) { $trial_plan = $this->_fetch_site_plan($this->_site->trial_plan_id); } if ($trial_plan instanceof FS_Plugin_Plan) { $this->_storage->store('trial_plan', $trial_plan, $store); } return $trial_plan; }
/** * Clear all sticky messages. * * @author Vova Feldman (@svovaf) * @since 1.0.8 */ function clear_all_sticky() { $this->_sticky_storage->clear_all(); }