filtrod 1.5.0
preprocess_comment
Opis — z kodu źródłowego
Filters a comment's data before it is sanitized and inserted into the database.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$commentdata | array | Comment data. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'preprocess_comment', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'preprocess_comment', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii