bsf_product_updates_disabled( string $product_id )

Whether update checks are disabled for a product via its BSF_{PRODUCT_ID}_CHECK_UPDATES constant.


Description

The product id is uppercased with dashes converted to underscores, e.g. astra-pro-sites maps to the BSF_ASTRA_PRO_SITES_CHECK_UPDATES constant. Updates are treated as disabled when that constant is defined and set to boolean false or the string 'false'.


Parameters

$product_id

(string) (Required) Product ID.


Return

(bool) True if update checks are disabled for the product.


Source

File: admin/bsf-core/includes/helpers.php

	function bsf_product_updates_disabled( $product_id ) {
		if ( '' === $product_id ) {
			return false;
		}

		$constant = 'BSF_' . strtoupper( str_replace( '-', '_', $product_id ) ) . '_CHECK_UPDATES';

		return defined( $constant ) && ( 'false' === constant( $constant ) || false === constant( $constant ) );
	}

Changelog

Changelog
Version Description
1.29.18 Introduced.


User Contributed Notes

You must log in before being able to contribute a note or feedback.