filtrod 3.0.0
comment_form_defaults
Opis — z kodu źródłowego
Filters the comment form default arguments.
Use {@see 'comment_form_default_fields'} to filter the comment fields.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$defaults | array | The default comment form arguments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'comment_form_defaults', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'comment_form_defaults', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii