# optimole-wp/4.2.6/inc/compatibilities/compatibility.php

Optimole – Optimize Images | Convert WebP &amp; AVIF | CDN &amp; Lazy Load | Image Optimization, version 4.2.6. 40 lines.

- Page: https://pluginprobe.com/plugins/optimole-wp/4.2.6/code/inc/compatibilities/compatibility.php
- Raw: https://pluginprobe.com/plugins/optimole-wp/4.2.6/raw/inc/compatibilities/compatibility.php
- Modified: 2024-08-20T10:04:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/optimole-wp/4.2.6/code/inc/compatibilities/compatibility.php#L10-L20`.

```php
<?php
/**
 * Class Optml_compatibility.
 */
abstract class Optml_compatibility {
	/**
	 * Register compatibility actions/filters.
	 */
	abstract public function register();

	/**
	 * Should we load the compatibility?
	 *
	 * @return bool Compatiblity
	 */
	abstract public function should_load();

	/**
	 * Will the compatibility be loaded?
	 *
	 * @return bool
	 */
	final public function will_load() {
		if ( ! Optml_Main::instance()->admin->settings->is_connected() ) {
			return false;
		}

		return $this->should_load();
	}

	/**
	 * Should we early load the compatibility?
	 *
	 * @return bool Whether to load the compatibility or not.
	 */
	public function should_load_early() {
		return false;
	}
}

```
