make_clickable_rel filter-hookWP 5.3.0

Filters the rel value that is added to URL matches converted to links.

Usage

add_filter( 'make_clickable_rel', 'wp_kama_make_clickable_rel_filter', 10, 2 );

/**
 * Function for `make_clickable_rel` filter-hook.
 * 
 * @param string $rel The rel value.
 * @param string $url The matched URL being converted to a link tag.
 *
 * @return string
 */
function wp_kama_make_clickable_rel_filter( $rel, $url ){

	// filter...
	return $rel;
}
$rel(string)
The rel value.
$url(string)
The matched URL being converted to a link tag.

Changelog

Since 5.3.0 Introduced.

Where the hook is called

_make_url_clickable_cb()
make_clickable_rel
_make_web_ftp_clickable_cb()
make_clickable_rel
wp-includes/formatting.php 2923
$rel = apply_filters( 'make_clickable_rel', $rel, $url );
wp-includes/formatting.php 2964
$rel = apply_filters( 'make_clickable_rel', $rel, $dest );

Where the hook is used in WordPress

Usage not found.