Files
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

44 lines
798 B
PHP

<?php
/**
* Options handler for Easy Age Verifier
* @author: Alex Standiford
* @date : 1/15/2017
*/
namespace eav\config;
if(!defined('ABSPATH')) exit;
/**
* Class option
* Simple wrapper for get_option WordPress function. Added to a class for scalability purposes
* @package eav\config
*/
class option{
/**
* Gets an option value for Easy Age Verifier
*
* @param $value
*
* @return mixed
*/
public static function get($value){
$option = get_option(EAV_PREFIX.'_'.$value);
return $option;
}
public static function getCheckbox($value){
$option = option::get($value);
if(!isset($option) || $option == ""){
$option = false;
}
else{
$option = true;
}
return $option;
}
}