Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'get_the_excerpt', function( $post_excerpt, $post ){
- $find = '<!--more-->';
- $replace = sprintf( '<div class="more-link-wrap mt-3"><a href="%1$s" class="more-link">%2$s</a></div>',
- esc_url( get_permalink( $post->ID ) ),
- esc_html__( 'Continue reading', 'streamtube' )
- );
- return str_replace( $find, $replace, $post_excerpt );
- }, 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement