akcjaod 2.1.0
commentrss2_item
Opis — z kodu źródłowego
Fires at the end of each RSS2 comment feed item.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$comment_id | int | The ID of the comment being displayed. |
$comment_post_id | int | The ID of the post the comment is connected to. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'commentrss2_item', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'commentrss2_item', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii