Automattic\WooCommerce\Blocks\Utils
CartCheckoutUtils::is_overriden_by_custom_template_content
Устарела с версии 0.9.0. Больше не поддерживается и может быть удалена. Используйте
is_overridden_by_custom_template_content().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.
Метод класса: CartCheckoutUtils{}
Хуков нет.
Возвращает
true|false. true if the template has out of sync content.
Использование
$result = CartCheckoutUtils::is_overriden_by_custom_template_content( $block ): bool;
- $block(строка) (обязательный)
- The block to check.
Список изменений
| Устарела с 10.9.0 | Use is_overridden_by_custom_template_content() instead. |
Код CartCheckoutUtils::is_overriden_by_custom_template_content() CartCheckoutUtils::is overriden by custom template content WC 10.9.1
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 );
}