FS_Option_Manager
3-layer lazy options manager.
Description Description
layer 3: Memory layer 2: Cache (if there’s any caching plugin and if WP_FS__DEBUG_SDK is FALSE) layer 1: Database (options table). All options stored as one option record in the DB to reduce number of DB queries.
If load() is not explicitly called, starts as empty manager. Same thing about saving the data – you have to explicitly call store().
Class Freemius_Option_Manager
Source Source
File: includes/pum-sdk/freemius/includes/managers/class-fs-option-manager.php
Expand full source code Collapse full source code View on Trac
Methods Methods
- __construct
- clear
- delete — Delete options manager from DB.
- get_cache_group
- get_manager
- get_option
- get_option_manager_name
- get_options_keys — Get options keys.
- has_option
- is_empty
- is_loaded
- load
- migrate_to_network — Migrate options from site level.
- set_option
- store — Dump options to database.
- unset_option — Unset option.