public function is_registration_enabled() { return apply_filters('woocommerce_checkout_registration_enabled', 'yes' === get_option('woocommerce_enable_signup_and_login_from_checkout')); }