Last active
September 20, 2019 02:30
-
-
Save EvanHerman/368555689bc7eb64ceb13af76e0dc053 to your computer and use it in GitHub Desktop.
Timeline Express Custom Read More Text
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 ); |
Also, with the code snippet above, just change 'Custom Rad More Text Here' with whatever you want the string to be translated to.
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
@alessio034
Feel free to take a look here: https://www.wp-timelineexpress.com/documentation/not-announcements-read-link/
That should help out 🆗