WC_Checkout::is_registration_enabled
Is registration enabled on the checkout page?
Метод класса: WC_Checkout{}
Хуки из метода
Возвращает
true|false.
Использование
$WC_Checkout = new WC_Checkout(); $WC_Checkout->is_registration_enabled();
Список изменений
| С версии 3.0.0 | Введена. |
Код WC_Checkout::is_registration_enabled() WC Checkout::is registration enabled WC 10.9.4
public function is_registration_enabled() {
/**
* Determines if customer registration is enabled during checkout.
*
* @since 3.0.0
*
* @param bool $checkout_registration_enabled If checkout registration is enabled.
*/
return apply_filters( 'woocommerce_checkout_registration_enabled', 'yes' === get_option( 'woocommerce_enable_signup_and_login_from_checkout' ) );
}