woocommerce_create_account_default_checked

woocommerce_create_account_default_checked

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_create_account_default_checked') is found 1 times:

  • /templates/checkout/form-billing.php line 53
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    <?php if ( ! $checkout->is_registration_required() ) : ?>
     
        <p class="form-row form-row-wide create-account">
            <label class="woocommerce-form__label woocommerce-form__label-for-checkbox checkbox">
                <input class="woocommerce-form__input woocommerce-form__input-checkbox input-checkbox" id="createaccount" <?php checked( ( true === $checkout->get_value( 'createaccount' ) || ( true === apply_filters( 'woocommerce_create_account_default_checked', false ) ) ), true ); ?> type="checkbox" name="createaccount" value="1" /> <span><?php esc_html_e( 'Create an account?', 'woocommerce' ); ?></span>
            </label>
        </p>
     
    <?php endif; ?>
     
    <?php do_action( 'woocommerce_before_checkout_registration_form', $checkout ); ?>