WP HOOKS
filtrod 3.7.0

comment_notification_recipients

Args 2Plik wp-includes/pluggable.phpDokumentacja WP ↗

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

ParametrTypOpis
$emailsstring[]An array of email addresses to receive a comment notification.
$comment_idstringThe 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
}

Popularne w tej kategorii