HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux bsx-1-dev 6.8.0-101-generic #101-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 9 10:15:05 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wordpress-tooltips/rules/disabletooltipsinglossarypage.php
<?php
if (!defined('ABSPATH'))
{
	exit;
}

function disableTooltipsFreeForGlossaryPage($post_id)
{
	$enableTooltipsForGlossaryPage = get_option("enableTooltipsForGlossaryPage");
	if (empty($enableTooltipsForGlossaryPage))
	{
		$enableTooltipsForGlossaryPage = 'YES';
	}

	if ($enableTooltipsForGlossaryPage == 'NO')
	{
		$now_posttype = get_post_type($post_id);
		if ('tooltips' == $now_posttype)
		{
			return true;
		}
	}
	return false;
}