make_clickable_rel хук-фильтрWP 5.3.0

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

Где используется хук в WordPress

Использование не найдено.