WC_Checkout::is_registration_required
Is registration required to checkout?
Метод класса: WC_Checkout{}
Хуки из метода
Возвращает
boolean.
Использование
$WC_Checkout = new WC_Checkout(); $WC_Checkout->is_registration_required();
Список изменений
| С версии 3.0.0 | Введена. |
Код WC_Checkout::is_registration_required() WC Checkout::is registration required WC 11.1.0
public function is_registration_required() {
/**
* Controls if registration is required in order for checkout to be completed.
*
* @since 3.0.0
*
* @param bool $checkout_registration_required If customers must be registered to checkout.
*/
return apply_filters( 'woocommerce_checkout_registration_required', 'yes' !== get_option( 'woocommerce_enable_guest_checkout' ) );
}