Custom text for an URL custom field

By default, Content Views Pro will convert custom field’s value in URL format to a link (HTML anchor tag) in this format:

<a target="_blank" href="URL_HERE">URL_HERE</a>

To use custom text for this link, for example:

<a target="_blank" href="URL_HERE">YOUR TEXT HERE</a>

, please add this code to file functions.php of your active theme:

// CVPro - Custom text for url field
add_filter( 'pt_cv_ctf_url_text', 'cvp_theme_text_of_url_field', 100, 2 );
function cvp_theme_text_of_url_field( $args, $key ) {
	$args = 'YOUR TEXT HERE';
	return $args;

Best regards,