Advertisement
Guest User

Untitled

a guest
Sep 21st, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <?php
  2.  
  3. add_filter( 'the_content_more_link', 'read_more_text_change' );
  4. function read_more_text_change() {
  5. return '<a class="more-link" href="' . get_permalink() . '">Continue Reading ...</a>';
  6. }
  7.  
  8. // Or if you are using content limit then you can use this
  9. add_filter( 'get_the_content_more_link', 'read_more_text_change_limit' );
  10. function read_more_text_change_limit() {
  11. return '... <a class="more-link" href="' . get_permalink() . '">Continue Reading ...</a>';
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement