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_clickable_rel_attr()
make_clickable_rel
wp-includes/formatting.php 3057
$rel = apply_filters( 'make_clickable_rel', $rel, $url );

Where the hook is used in WordPress

Usage not found.