filtrod 2.8.0
feed_content_type
Opis — z kodu źródłowego
Filters the content type for a specific feed type.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$content_type | string | Content type indicating the type of data that a feed contains. |
$type | string | Type 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
}
// 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