# imagify/trunk/classes/ThirdParty/Hostings/Extendify.php

Imagify Image Optimization: Optimize Images | Compress &amp; Convert to WebP/AVIF, version trunk. 41 lines.

- Page: https://pluginprobe.com/plugins/imagify/trunk/code/classes/ThirdParty/Hostings/Extendify.php
- Raw: https://pluginprobe.com/plugins/imagify/trunk/raw/classes/ThirdParty/Hostings/Extendify.php
- Modified: 2026-05-25T15:55:52+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/imagify/trunk/code/classes/ThirdParty/Hostings/Extendify.php#L10-L20`.

```php
<?php
declare( strict_types=1 );

namespace Imagify\ThirdParty\Hostings;

use Imagify\EventManagement\SubscriberInterface;

/**
 * Extendify compatibility class
 */
class Extendify implements SubscriberInterface {
	/**
	 * Returns an array of events that this subscriber wants to listen to.
	 *
	 * @return array
	 */
	public static function get_subscribed_events(): array {
		return [
			// @filter
			'imagify_hide_plugin_family' => 'hide_plugin_family',
		];
	}

	/**
	 * Hide the plugin family if the Extendify site ID option is present.
	 *
	 * @param bool $hide Current value.
	 *
	 * @return bool
	 */
	public function hide_plugin_family( $hide ) {
		$option = get_option( 'extendify_site_id', false );

		if ( false === $option ) {
			return $hide;
		}

		return true;
	}
}

```
