HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/insiders/wp-load/wp-content/plugins/internal-links/core/options/abstractoption.php
<?php
namespace ILJ\Core\Options;

/**
 * Abstract implementation of OptionInterface
 *
 * Provides some generic defaults for option instances
 *
 * @package ILJ\Core\Options
 *
 * @since 1.1.3
 */
abstract class AbstractOption implements OptionInterface {

	const ILJ_OPTIONS_PREFIX = 'ilj_settings_field_';
	
	/**
	 * Check if the option is pro
	 *
	 * @return void
	 */
	public static function isPro() {
		return false;
	}

	/**
	 * Adds the option to an option group
	 *
	 * @param  string $option_group The option group to which the option gets connected
	 * @return void
	 */
	public function register($option_group) {
		// phpcs:ignore PluginCheck.CodeAnalysis.SettingSanitization.register_settingMissing -- This is an abstract method; no option field is displayed in the backend, so sanitization is not required.
		register_setting($option_group, static::getKey());
	}
	
	/**
	 * Get the option's description
	 *
	 * @return void
	 */
	public function getDescription() {
		return '';
	}
	
	/**
	 * Get the option's hint
	 *
	 * @return void
	 */
	public function getHint() {
		 return '';
	}
}