Uname: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Software: Apache
PHP version: 5.4.45 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.91.62
Your Ip: 216.73.216.52
User: matthif (139342) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : utilities-main.php
<?php

namespace PublishPress\Blocks;

/*
 * Methods used across all the classes
 */
if ( ! class_exists( '\\PublishPress\\Blocks\\Utilities' ) ) {
	class Utilities {
		/**
		 * Check if a setting is enabled
		 *
		 * @param string $setting The setting from advgb_settings option field
		 *
		 * @return boolean
		 * @since 3.1.0
		 */
		public static function settingIsEnabled( $setting ) {
			$saved_settings = get_option( 'advgb_settings' );

			if ( isset( $saved_settings[ $setting ] ) && ! $saved_settings[ $setting ] ) {
				return false;
			}

			if ( ! isset( $saved_settings[ $setting ] ) || $saved_settings[ $setting ] ) {
				return true;
			}

			return false;
		}
	}
}
© 2026 XylotrechusZ