Automattic\WooCommerce\Blocks\Utils

CartCheckoutUtils::is_overriden_by_custom_template_contentpublic staticWC 1.0

Deprecated since 0.9.0. It is no longer supported and may be removed in future releases. Use is_overridden_by_custom_template_content() instead.

Checks if the template overriding the page loads the page content or not. Templates by default load the page content, but if that block is deleted the content can get out of sync with the one presented in the page editor.

Method of the class: CartCheckoutUtils{}

No Hooks.

Returns

true|false. true if the template has out of sync content.

Usage

$result = CartCheckoutUtils::is_overriden_by_custom_template_content( $block ): bool;
$block(string) (required)
The block to check.

Changelog

Deprecated since 10.9.0 Use is_overridden_by_custom_template_content() instead.

CartCheckoutUtils::is_overriden_by_custom_template_content() code WC 10.9.4

public static function is_overriden_by_custom_template_content( string $block ): bool {
	wc_deprecated_function( __METHOD__, '10.9.0', 'is_overridden_by_custom_template_content' );
	return self::is_overridden_by_custom_template_content( $block );
}