skip to Main Content

Snippet: Alter The Readmore Button Text

// Example of conditionally altering the readmore button text via the filter
// This example shows you can change it for video format posts.
function myprefix_custom_post_readmore_link_text( $text ) {
	if ( 'video' == get_post_format() ) {
		$text = 'Watch Video';
	return $text;
add_filter( 'wpex_post_readmore_link_text', 'myprefix_custom_post_readmore_link_text' );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend WPCode)
Back To Top