self_link хук-фильтрWP 3.6.0

Filters the current feed URL.

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

add_filter( 'self_link', 'wp_kama_self_link_filter' );

/**
 * Function for `self_link` filter-hook.
 * 
 * @param string $feed_link The link for the feed with set URL scheme.
 *
 * @return string
 */
function wp_kama_self_link_filter( $feed_link ){

	// filter...
	return $feed_link;
}
$feed_link(строка)
The link for the feed with set URL scheme.

Список изменений

С версии 3.6.0 Введена.

Где вызывается хук

self_link()
self_link
wp-includes/feed.php 683
echo esc_url( apply_filters( 'self_link', get_self_link() ) );

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

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