[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.226.186.153: ~ $
<?php
/**
 * Helper function for retrieving any plugin setting.
 *
 * @package block-visibility
 * @since   1.5.0
 */

namespace BlockVisibility\Utils;

defined( 'ABSPATH' ) || exit;

/**
 * Helper function for retrieving any plugin setting.
 *
 * @since 1.5.0
 *
 * @param array  $settings      The core plugin settings.
 * @param string $category     The category the setting is in (visibility_controls or plugin_settings).
 * @param string $sub_category (Optional, set to null if not needed) The sub-category the setting is in.
 * @param string $setting      The setting or setting group if you are retrieving a sub-setting.
 * @param string $sub_setting  (Optional, set to null if not needed) The sub-setting to be retrieved.
 * @param mixed  $default       The default setting value, if the setting cannot be found.
 * @return boolean             Is the control (or subcontrol) enabled?
 */
function get_setting( $settings, $category, $sub_category, $setting, $sub_setting, $default ) {

	if ( isset( $settings[ $category ] ) ) {
		$category_settings = $settings[ $category ];
	} else {
		return $default;
	}

	if ( $sub_category && isset( $category_settings[ $sub_category ] ) ) {
		$category_settings = $category_settings[ $sub_category ];
	} else {
		return $default;
	}

	if ( $sub_setting ) {
		if ( isset( $category_settings[ $setting ][ $sub_setting ] ) ) {
			return $category_settings[ $setting ][ $sub_setting ];
		}
	} elseif ( isset( $category_settings[ $setting ] ) ) {
		return $category_settings[ $setting ];
	}

	return $default;
}

Filemanager

Name Type Size Permission Actions
create-date-time.php File 2.04 KB 0644
get-asset-file.php File 730 B 0644
get-setting.php File 1.52 KB 0644
is-control-enabled.php File 1.14 KB 0644
user-functions.php File 1.77 KB 0644