Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFieldTypes

AbstractFieldType::doing_it_wrong │ protected │ WC 1.0

Reports a field registration misuse that does not prevent the field from being registered.

Метод класса: AbstractFieldType{}

Хуков нет.

Возвращает

false.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->doing_it_wrong( $message, $version ): bool;
$message(строка) (обязательный)
The message describing the misuse.
$version(строка) (обязательный)
The version the misuse was introduced in.

Код AbstractFieldType::doing_it_wrong() WC 11.3.0

protected function doing_it_wrong( string $message, string $version ): bool {
	_doing_it_wrong( 'woocommerce_register_additional_checkout_field', esc_html( $message ), esc_html( $version ) );
	return false;
}