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