Skip to content
Docs
Get RestroPress

Filter

rpress_email_template_make_clickable

Updated
On this page

Filters whether URLs in email content are converted to links.

Applied in RPRESS_Emails::text_to_html() for HTML emails, after the wpautop filter. When true, the message passes through make_clickable(), which turns plain URLs into anchor tags. The default is true.

Parameters#

ParameterTypeDescription
$valueboolDefault value, true.

Return value#

bool. True to run make_clickable(), false to skip it.

Example#

function my_email_make_clickable( $apply ) {
	return false;
}
add_filter( 'rpress_email_template_make_clickable', 'my_email_make_clickable' );

Source#

Applied in:

  • includes/emails/class-rpress-emails.php (line 351), in RPRESS_Emails::text_to_html()

See also#

Was this page helpful?