PluginProbe
Force Refresh / 2.10.1
Force Refresh v2.10.1
3.2.1 3.2.0 3.1.2 3.1.1 3.1.0 trunk 1.0.0 1.1.0 1.1.1 1.1.2 1.2.0 2.0.0 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.10.0 2.10.1 2.10.2 2.11.0 2.11.1 2.12.0 All 54 releases
force-refresh / includes / services / classes / class-storage-service.php

class-storage-service.php in Force Refresh 2.10.1, at includes/services/classes/class-storage-service.php

27 lines 660 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Our superclass responsible for storage services.
4 *
5 * @package ForceRefresh
6 */
7
8 namespace JordanLeven\Plugins\ForceRefresh\Services;
9
10 /**
11 * Superclass for storage services.
12 */
13 abstract class Storage_Service {
14
15 /**
16 * Method for getting an option from the WordPress database.
17 *
18 * @param string $option_name The name of the option to get.
19 * @param mixed $default The default value to return if the option doesn't exist.
20 *
21 * @return mixed The saved option
22 */
23 public static function get_option( string $option_name, $default = false ) {
24 return get_option( $option_name, $default );
25 }
26 }
27