HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /home/hanode/public_html/wp-content/plugins/taxonomy-images/plugin/includes/supported-class.php
<?php

/**
 * @package     Taxonomy Images
 * @subpackage  Supported
 *
 * This class is not namespaced as it needs to be
 * backwards-compatible with earlier versions of PHP.
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

class Taxonomy_Images_Supported {

	/**
	 * Plugin Supported?
	 *
	 * @return  boolean
	 */
	public static function plugin_supported() {

		return self::php_version_supported() && self::wp_version_supported() && self::is_supported_by_default();

	}

	/**
	 * PHP Version Supported?
	 *
	 * 5.3+ required for namespace support.
	 *
	 * @return  boolean
	 */
	public static function php_version_supported() {

		return version_compare( PHP_VERSION, '5.3.0', '>' );

	}

	/**
	 * WP Version Supported?
	 *
	 * WordPress 4.4 required for term meta support.
	 *
	 * @return  boolean
	 */
	public static function wp_version_supported() {

		global $wp_version;

		return version_compare( $wp_version, '4.4', '>=' );

	}

	/**
	 * Is Supported By Default?
	 *
	 * Used to disable term meta by default until production-ready.
	 * Can use filter in the meantime to add support.
	 *
	 * @return  boolean
	 */
	public static function is_supported_by_default() {

		return apply_filters( 'taxonomy_images/use_term_meta', false );

	}

}