Snippets: 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' );

Snippet Type: PHP

Posted Under: Blog

All PHP snippets should be added via a child theme's functions.php file.