WP HOOKS
filtrod 2.8.0

feed_content_type

Args 2Plik wp-includes/feed.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the content type for a specific feed type.

Parametry

ParametrTypOpis
$content_typestringContent type indicating the type of data that a feed contains.
$typestringType of feed. Possible values include 'rss', rss2', 'atom', and 'rdf'.

Wywołanie

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

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

Popularne w tej kategorii