to change text of checkout page woocommerce

PHOTO EMBED

Thu Sep 21 2023 04:40:11 GMT+0000 (Coordinated Universal Time)

Saved by @Alihaan #php

function custom_checkout_text_change( $translated_text, $text, $domain ) {
    if ( $domain === 'woocommerce' && $text === 'Billing details' ) {
        $translated_text = 'Billing Details';
    }
    return $translated_text;
}
add_filter( 'gettext', 'custom_checkout_text_change', 20, 3 );
content_copyCOPY