filtrod 3.7.0
comment_notification_recipients
Opis — z kodu źródłowego
Filters the list of email addresses to receive a comment notification.
By default, only post authors are notified of comments. This filter allows others to be added.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$emails | string[] | An array of email addresses to receive a comment notification. |
$comment_id | string | The comment ID as a numeric string. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_notification_recipients', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_notification_recipients', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii