Change the proceed to checkout text in the Astra theme

Change the proceed to checkout text in the Astra theme on child sites.

Snippet Type

Execute on Child Sites

Snippet

function change_proceed_to_checkout_text( $translated_text, $text, $domain ) {
    if ( 'woocommerce' === $domain && 'Proceed to checkout' === $text ) {
        $translated_text = 'Your Custom Text';
    }
    return $translated_text;
}
add_filter( 'gettext', 'change_proceed_to_checkout_text', 20, 3 );

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.