Change ‘Add to Cart’ Text in WooCommerce

add_filter('woocommerce_product_single_add_to_cart_text', 'custom_cart_button_text');
function custom_cart_button_text() {
    return __('Buy Now', 'woocommerce');
}