make_clickable_rel
Filters the rel value that is added to URL matches converted to links.
Использование
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(строка)
- The rel value.
- $url(строка)
- The matched URL being converted to a link tag.
Список изменений
| С версии 5.3.0 | Введена. |
Где вызывается хук
make_clickable_rel
wp-includes/formatting.php 3067
$rel = apply_filters( 'make_clickable_rel', $rel, $url );