filtrod 2.9.0
the_content_feed
Opis — z kodu źródłowego
Filters the post content for use in feeds.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$content | string | The current post content. |
$feed_type | string | Type of feed. Possible values include 'rss2', 'atom'. Default 'rss2'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_content_feed', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'the_content_feed', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii