PATH:
home
/
lab2454c
/
archfort.com
/
wp-content
/
plugins
/
update-urls
/
lite
/
includes
<?php namespace Kaizencoders\Update_Urls; class Option { /** * @var string * * @since 1.2 */ static $prefix = 'kc_uu_'; /** * Get option * * @param string $option * @param string $default * * @return bool|mixed|void|null * * @since 1.2 */ public static function get( $option = '', $default = '' ) { if ( empty( $option ) ) { return null; } $option = self::$prefix . $option; return get_option( $option, $default ); } /** * Set Option * * @param string $option * @param string $value * * @return bool|null * * @since 1.2 */ public static function set( $option = '', $value = '', $autoload = false ) { if ( empty( $option ) ) { return null; } $option = self::$prefix . $option; return update_option( $option, $value, $autoload ); } /** * Add Option * * @param string $option * @param string $value * * @return bool|null * * @since 1.2 */ public static function add( $option = '', $value = '', $autoload = false ) { if ( empty( $option ) ) { return null; } $option = self::$prefix . $option; return add_option( $option, $value, '', $autoload ); } /** * Delete option * * @param string $option * * @return bool|null * * @since 1.2 */ public static function delete( $option = null ) { if ( empty( $option ) ) { return null; } $option = self::$prefix . $option; return delete_option( $option ); } }
[-] Settings.php
[edit]
[-] Plugin.php
[edit]
[-] Activator.php
[edit]
[-] index.php
[edit]
[+]
Upgrade
[-] Option.php
[edit]
[+]
..
[-] Frontend.php
[edit]
[-] Deactivator.php
[edit]
[-] Notice.php
[edit]
[-] I18n.php
[edit]
[+]
Admin
[-] Loader.php
[edit]
[+]
Common
[-] Tracker.php
[edit]
[-] Install.php
[edit]
[-] Feedback.php
[edit]
[+]
Frontend
[-] Admin.php
[edit]
[-] Cache.php
[edit]
[-] Helper.php
[edit]