filtrod 4.2.0
comment_form_submit_field
Opis — z kodu źródłowego
Filters the submit field for the comment form to display.
The submit field includes the submit button, hidden fields for the comment form, and any wrapper markup.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$submit_field | string | HTML markup for the submit field. |
$args | array | Arguments passed to comment_form(). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_form_submit_field', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'comment_form_submit_field', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii