Skip to content

Instantly share code, notes, and snippets.

@EvanHerman
Last active September 20, 2019 02:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvanHerman/368555689bc7eb64ceb13af76e0dc053 to your computer and use it in GitHub Desktop.
Save EvanHerman/368555689bc7eb64ceb13af76e0dc053 to your computer and use it in GitHub Desktop.
Timeline Express Custom Read More Text
<?php // Do not include this line - this is here for syntax highlighting only
/**
* Alter the read more text on the timeline
*
* @param string $text The read more link text.
* @param integer $post_id The post ID.
*
* @return string The final read more link text.
*/
function timeline_express_custom_read_more_text( $text, $post_id ) {
return 'Custom Read More Text Here';
}
add_filter( 'timeline_express_read_more_text', 'timeline_express_custom_read_more_text', 10, 2 );
@alessio034
Copy link

hello i need traslate the read more button how i can do it
image
any guide?

@EvanHerman
Copy link
Author

@alessio034

Feel free to take a look here: https://www.wp-timelineexpress.com/documentation/not-announcements-read-link/

That should help out 🆗

@EvanHerman
Copy link
Author

Also, with the code snippet above, just change 'Custom Rad More Text Here' with whatever you want the string to be translated to.

@alessio034
Copy link

ahhhh i believe my problem is on the server because i cant edit any file so i need change the files permission jjj ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment