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