filtrod 4.4.0
duplicate_comment_id
Opis — z kodu źródłowego
Filters the ID, if any, of the duplicate comment found when creating a new comment.
Return an empty value from this filter to allow what WP considers a duplicate comment.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$dupe_id | int | ID of the comment identified as a duplicate. |
$commentdata | array | Data for the comment being created. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'duplicate_comment_id', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'duplicate_comment_id', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii