WordPress at a glance
function is not described

wc_terms_and_conditions_checkbox_enabled() WC 3.4.0

See if the checkbox is enabled or not based on the existance of the terms page and checkbox text.

No Hooks.

Return

true|false. Nothing.

Usage

wc_terms_and_conditions_checkbox_enabled();

Changelog

Since 3.4.0 Introduced.

Code of wc_terms_and_conditions_checkbox_enabled() WC 5.3.0

<?php
function wc_terms_and_conditions_checkbox_enabled() {
	$page_id = wc_terms_and_conditions_page_id();
	$page    = $page_id ? get_post( $page_id ) : false;
	return $page && wc_get_terms_and_conditions_checkbox_text();
}