Automattic\WooCommerce\Blocks\Domain\Services\CheckoutFieldTypes
AbstractFieldType::doing_it_wrong
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() AbstractFieldType::doing it wrong WC 11.2.2
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;
}