Description
-
add_rtmedia_view_count_content
Filter to change the text strings that appear near the view count. Passes two arguments. First argument is for singular string & second argument is for plural string.
add_filter( 'rtmedia_view_count_content', 'rtmedia_view_count_content_callback', 10, 1 );
function rtmedia_view_count_content_callback( $view ) {
$view['text'] = _n( 'Person viewed this', 'People viewed this', $view['count'], 'rtmedia' );
return $view;
}
You must be logged in to post a comment.