filtrod 4.7.0
wp_update_comment_data
Opis — z kodu źródłowego
Filters the comment data immediately before it is updated in the database.
Note: data being passed to the filter is already unslashed.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$data | array | \WP_Error | The new, processed comment data, or WP_Error. |
$comment | array | The old, unslashed comment data. |
$commentarr | array | The new, raw comment data. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_update_comment_data', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_update_comment_data', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii