Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
scripts-to-footerphp
/
includes
:
functions.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Common functions. * * @since 0.6.0 * @package Scripts_To_Footer * @subpackage functions **/ /** * Get custom settings. * * @since 0.6.0 * @param string $key The key. * @param mixed $default_value The default value. * @param string $setting The settings field. */ function stf_get_option( $key, $default_value = false, $setting = null ) { // Get settings field options. $setting = $setting ? $setting : 'scripts-to-footer'; $options = get_option( $setting, $default_value ); if ( ! is_array( $options ) || ! array_key_exists( $key, $options ) ) { return ''; } return is_array( $options[ $key ] ) ? stripslashes_deep( $options[ $key ] ) : stripslashes( wp_kses_decode_entities( $options[ $key ] ) ); }