How to change the excerpt more string in WordPress

If an excerpt is greater than 55 words, WordPress will append a more link to the excerpt text. By default the link text is […]. The excerpt_more filter can be used to change this string.

add_filter( 'excerpt_more', function( $more_string ) {
    $more_string = __( 'Continue reading', 'text-domain' );
    return $more_string;
}, 12 );