WP HOOKS
filtrod 3.0.0

the_feed_link

Args 2Plik wp-includes/link-template.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the feed link anchor tag.

Parametry

ParametrTypOpis
$linkstringThe complete anchor tag for a feed link.
$feedstringThe feed type. Possible values include 'rss2', 'atom', or an empty string for the default feed type.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_feed_link', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii